2010-03-19 21:29:42 -04:00
|
|
|
module Fog
|
|
|
|
module Rackspace
|
|
|
|
module Files
|
|
|
|
class Real
|
2009-10-28 01:20:50 -04:00
|
|
|
|
|
|
|
# Delete an existing container
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * name<~String> - Name of container to delete
|
|
|
|
#
|
|
|
|
def delete_container(name)
|
|
|
|
response = storage_request(
|
|
|
|
:expects => 204,
|
|
|
|
:method => 'DELETE',
|
|
|
|
:path => CGI.escape(name)
|
|
|
|
)
|
|
|
|
response
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2010-03-19 21:29:42 -04:00
|
|
|
class Mock
|
2009-10-28 01:20:50 -04:00
|
|
|
|
2010-02-02 01:53:18 -05:00
|
|
|
def delete_container(name)
|
|
|
|
raise MockNotImplemented.new("Contributions welcome!")
|
2009-10-28 01:20:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|