Sha256: 98a64c7191232bffeeda1b7816267a9d91ef50ed2c06714b9ec92f04b5be15a1

Contents?: true

Size: 631 Bytes

Versions: 46

Compression:

Stored size: 631 Bytes

Contents

module Fog
  module Rackspace
    module Files
      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 = storage_request(
            :expects  => [201, 202],
            :method   => 'PUT',
            :path     => CGI.escape(name)
          )
          response
        end

      end

      class Mock

        def put_container(name)
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
fog-0.1.3 lib/fog/rackspace/requests/files/put_container.rb
fog-0.1.2 lib/fog/rackspace/requests/files/put_container.rb
fog-0.1.1 lib/fog/rackspace/requests/files/put_container.rb
fog-0.1.0 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.100 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.99 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.98 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.97 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.96 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.95 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.94 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.93 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.92 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.91 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.90 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.89 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.88 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.87 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.86 lib/fog/rackspace/requests/files/put_container.rb
fog-0.0.85 lib/fog/rackspace/requests/files/put_container.rb