2009-10-30 21:41:39 -07:00
|
|
|
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
|
|
|
|
|
2010-02-01 22:53:18 -08:00
|
|
|
def delete_object(container, object)
|
|
|
|
raise MockNotImplemented.new("Contributions welcome!")
|
2009-10-30 21:41:39 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|