mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Add implementation for #delete_object method.
This commit is contained in:
parent
10ed24606e
commit
be0b19f7c7
1 changed files with 24 additions and 0 deletions
24
lib/fog/storage/requests/hp/delete_object.rb
Normal file
24
lib/fog/storage/requests/hp/delete_object.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
module Fog
|
||||
module HP
|
||||
class Storage
|
||||
class Real
|
||||
|
||||
# Delete an existing object
|
||||
#
|
||||
# ==== Parameters
|
||||
# * container<~String> - Name of container to delete
|
||||
# * object<~String> - Name of object to delete
|
||||
#
|
||||
def delete_object(container, object)
|
||||
response = request(
|
||||
:expects => 204,
|
||||
:method => 'DELETE',
|
||||
:path => "#{URI.escape(container)}/#{URI.escape(object)}"
|
||||
)
|
||||
response
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue