2010-03-19 21:29:42 -04:00
|
|
|
module Fog
|
2011-06-15 17:26:43 -04:00
|
|
|
module Storage
|
|
|
|
class Rackspace
|
2010-03-19 21:29:42 -04:00
|
|
|
class Real
|
2010-02-27 16:39:33 -05:00
|
|
|
|
|
|
|
# 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)
|
2011-06-15 17:26:43 -04:00
|
|
|
request({
|
2010-02-27 16:39:33 -05:00
|
|
|
:block => block,
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
2011-09-16 23:46:22 -04:00
|
|
|
:path => "#{Fog::Rackspace.escape(container)}/#{Fog::Rackspace.escape(object)}"
|
2010-05-09 19:23:03 -04:00
|
|
|
}, false, &block)
|
2010-02-27 16:39:33 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|