Sha256: 295bef9f1bd646f38ebc1d8ec0f05f8dd7d5e458a7f768561a8a64c605496f0a

Contents?: true

Size: 774 Bytes

Versions: 33

Compression:

Stored size: 774 Bytes

Contents

module Fog
  module Rackspace
    module Files
      class Real

        # 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

      class Mock

        def put_object(container, object, data)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
fog-0.2.30 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.28 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.27 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.26 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.25 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.24 lib/fog/rackspace/requests/files/put_object.rb
tecnh-fog-0.2.23.vpc lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.23 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.22 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.21 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.20 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.19 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.18 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.17 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.16 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.15 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.14 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.13 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.12 lib/fog/rackspace/requests/files/put_object.rb
fog-0.2.11 lib/fog/rackspace/requests/files/put_object.rb