2012-08-12 19:35:35 -04:00
|
|
|
module Fog
|
|
|
|
module Storage
|
|
|
|
class Atmos
|
|
|
|
class Real
|
2014-08-04 15:56:01 -04:00
|
|
|
def get_namespace(namespace = '', options = {}, &block)
|
2012-08-12 19:35:35 -04:00
|
|
|
options = options.reject {|key, value| value.nil?}
|
2014-08-04 15:56:01 -04:00
|
|
|
|
|
|
|
if block_given?
|
|
|
|
options[:response_block] = Proc.new
|
|
|
|
end
|
|
|
|
|
2012-08-12 19:35:35 -04:00
|
|
|
request({
|
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
2014-01-24 01:26:52 -05:00
|
|
|
:path => "namespace/" + URI.escape(namespace),
|
2012-08-12 19:35:35 -04:00
|
|
|
:query => {},
|
|
|
|
:parse => true
|
|
|
|
}.merge(options))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|