mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
39 lines
695 B
Ruby
39 lines
695 B
Ruby
unless Fog.mocking?
|
|
|
|
module Fog
|
|
module Rackspace
|
|
class Files
|
|
|
|
# Delete an existing container
|
|
#
|
|
# ==== Parameters
|
|
# * container<~String> - Name of container to delete
|
|
# * object<~String> - Name of object to delete
|
|
#
|
|
def delete_object(container, object)
|
|
response = storage_request(
|
|
:expects => 204,
|
|
:method => 'DELETE',
|
|
:path => "#{CGI.escape(container)}/#{CGI.escape(object)}"
|
|
)
|
|
response
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
|
|
else
|
|
|
|
module Fog
|
|
module Rackspace
|
|
class Servers
|
|
|
|
def delete_object
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
|
|
end
|