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