Sha256: 3d81a98765382cd0dc3e3a99898aeacd86d33c9365370ae4ebe1ae20d57e0c0a

Contents?: true

Size: 485 Bytes

Versions: 5

Compression:

Stored size: 485 Bytes

Contents

module Fog
  module Rackspace
    class Storage
      class Real

        # Create a new container
        #
        # ==== Parameters
        # * name<~String> - Name for container, should be < 256 bytes and must not contain '/'
        #
        def put_container(name)
          response = request(
            :expects  => [201, 202],
            :method   => 'PUT',
            :path     => CGI.escape(name)
          )
          response
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-0.7.1 lib/fog/storage/requests/rackspace/put_container.rb
fog-0.7.0 lib/fog/storage/requests/rackspace/put_container.rb
fog-0.6.0 lib/fog/storage/requests/rackspace/put_container.rb
fog-0.5.3 lib/fog/storage/requests/rackspace/put_container.rb
fog-0.5.2 lib/fog/storage/requests/rackspace/put_container.rb