Sha256: 7b684016c27deb340082344421dac3e77648d7be4252f8a1f7db9200a6c01da9

Contents?: true

Size: 783 Bytes

Versions: 13

Compression:

Stored size: 783 Bytes

Contents

unless Fog.mocking?

  module Fog
    module Rackspace
      class Files

        # Create a new object
        #
        # ==== Parameters
        # * container<~String> - Name for container, should be < 256 bytes and must not contain '/'
        #
        def put_object(container, object, data)
          data = parse_data(data)
          response = storage_request(
            :body     => data[:body],
            :expects  => 201,
            :headers  => data[:headers],
            :method   => 'PUT',
            :path     => "#{CGI.escape(container)}/#{CGI.escape(object)}"
          )
          response
        end

      end
    end
  end

else

  module Fog
    module Rackspace
      class Servers

        def put_container
        end

      end
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fog-0.0.42 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.41 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.40 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.39 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.38 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.37 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.36 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.35 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.34 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.33 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.32 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.31 lib/fog/rackspace/requests/files/put_object.rb
fog-0.0.30 lib/fog/rackspace/requests/files/put_object.rb