1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rackspace/requests/files/put_container.rb

32 lines
602 B
Ruby
Raw Normal View History

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)
response = storage_request(
:expects => [201, 202],
2009-10-27 22:20:50 -07:00
:method => 'PUT',
:path => CGI.escape(name)
)
2009-10-27 22:20:50 -07:00
response
end
end
class Mock
2009-10-27 22:20:50 -07:00
def put_container(name)
Fog::Mock.not_implemented
2009-10-27 22:20:50 -07:00
end
end
end
end
end