2010-03-19 21:29:42 -04:00
|
|
|
module Fog
|
2011-06-15 17:26:43 -04:00
|
|
|
module Storage
|
|
|
|
class Rackspace
|
2010-03-19 21:29:42 -04:00
|
|
|
class Real
|
2009-10-28 01:20:50 -04:00
|
|
|
|
|
|
|
# Create a new container
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * name<~String> - Name for container, should be < 256 bytes and must not contain '/'
|
|
|
|
#
|
|
|
|
def put_container(name)
|
2011-06-15 17:26:43 -04:00
|
|
|
request(
|
2009-11-05 03:02:26 -05:00
|
|
|
:expects => [201, 202],
|
2009-10-28 01:20:50 -04:00
|
|
|
:method => 'PUT',
|
2011-09-16 23:46:22 -04:00
|
|
|
:path => Fog::Rackspace.escape(name)
|
2010-07-02 11:03:19 -04:00
|
|
|
)
|
2009-10-28 01:20:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|