Sha256: 53675b38eacdf4a7f809085194c0f71d0cb572ff3447a5d606f91f204376cd48

Contents?: true

Size: 839 Bytes

Versions: 30

Compression:

Stored size: 839 Bytes

Contents

module Fog
  module Rackspace
    class Storage
      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, options = {})
          data = parse_data(data)
          headers = data[:headers].merge!(options)
          response = request(
            :body     => data[:body],
            :expects  => 201,
            :headers  => headers,
            :method   => 'PUT',
            :path     => "#{CGI.escape(container)}/#{CGI.escape(object)}"
          )
          response
        end

      end

      class Mock

        def put_object(container, object, data, options = {})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
fog-0.5.1 lib/fog/storage/requests/rackspace/put_object.rb
fog-0.5.0 lib/fog/storage/requests/rackspace/put_object.rb
phpfog-fog-0.4.1.3 lib/fog/storage/requests/rackspace/put_object.rb
phpfog-fog-0.4.1.2 lib/fog/storage/requests/rackspace/put_object.rb
phpfog-fog-0.4.1.1 lib/fog/storage/requests/rackspace/put_object.rb
phpfog-fog-0.4.1 lib/fog/storage/requests/rackspace/put_object.rb
fog-0.4.1 lib/fog/storage/requests/rackspace/put_object.rb
fog-0.4.0 lib/fog/rackspace/requests/storage/put_object.rb
fog-0.3.34 lib/fog/rackspace/requests/storage/put_object.rb
fog-0.3.33 lib/fog/rackspace/requests/storage/put_object.rb
fog-0.3.32 lib/fog/rackspace/requests/storage/put_object.rb
fog-0.3.31 lib/fog/rackspace/requests/storage/put_object.rb
fog-0.3.30 lib/fog/rackspace/requests/storage/put_object.rb
fog-0.3.29 lib/fog/rackspace/requests/storage/put_object.rb
fog-0.3.28 lib/fog/rackspace/requests/storage/put_object.rb
fog-0.3.27 lib/fog/rackspace/requests/storage/put_object.rb
fog-0.3.26 lib/fog/rackspace/requests/storage/put_object.rb
fog-0.3.25 lib/fog/rackspace/requests/storage/put_object.rb
fog-0.3.24 lib/fog/rackspace/requests/storage/put_object.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/rackspace/requests/storage/put_object.rb