2010-03-19 18:29:42 -07:00
|
|
|
module Fog
|
|
|
|
module Rackspace
|
|
|
|
module Files
|
|
|
|
class Real
|
2009-10-27 22:20:50 -07:00
|
|
|
|
|
|
|
# Create a new container
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * name<~String> - Name for container, should be < 256 bytes and must not contain '/'
|
|
|
|
#
|
|
|
|
def put_container(name)
|
2010-07-02 10:03:19 -05:00
|
|
|
response = storage_request(
|
2009-11-05 00:02:26 -08:00
|
|
|
:expects => [201, 202],
|
2009-10-27 22:20:50 -07:00
|
|
|
:method => 'PUT',
|
|
|
|
:path => CGI.escape(name)
|
2010-07-02 10:03:19 -05:00
|
|
|
)
|
2009-10-27 22:20:50 -07:00
|
|
|
response
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2010-03-19 18:29:42 -07:00
|
|
|
class Mock
|
2009-10-27 22:20:50 -07:00
|
|
|
|
2010-02-01 22:53:18 -08:00
|
|
|
def put_container(name)
|
2010-05-26 17:38:23 -07:00
|
|
|
Fog::Mock.not_implemented
|
2009-10-27 22:20:50 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|