Sha256: 2ff048a3b0b6de7f0ca7f8fb66aca12a1f43686e5e16e821646d377b593ad662

Contents?: true

Size: 816 Bytes

Versions: 12

Compression:

Stored size: 816 Bytes

Contents

unless Fog.mocking?

  module Fog
    module Rackspace
      class Files

        # Get details for object
        #
        # ==== Parameters
        # * container<~String> - Name of container to look in
        # * object<~String> - Name of object to look for
        #
        def get_object(container, object, &block)
          response = storage_request({
            :block    => block,
            :expects  => 200,
            :method   => 'GET',
            :path     => "#{CGI.escape(container)}/#{CGI.escape(object)}"
          }, false)
          response
        end

      end
    end
  end

else

  module Fog
    module Rackspace
      class Servers

        def get_object(container, object)
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fog-0.0.58 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.57 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.56 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.55 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.54 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.53 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.52 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.51 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.50 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.49 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.48 lib/fog/rackspace/requests/files/get_object.rb
fog-0.0.47 lib/fog/rackspace/requests/files/get_object.rb