2010-09-24 20:12:01 +00:00
|
|
|
class Google < Fog::Bin
|
2010-09-18 17:40:48 +00:00
|
|
|
class << self
|
|
|
|
|
2010-09-24 20:12:01 +00:00
|
|
|
def [](service)
|
|
|
|
@@connections ||= Hash.new do |hash, key|
|
|
|
|
hash[key] = case key
|
|
|
|
when :storage
|
|
|
|
Fog::Google::Storage.new
|
2010-09-18 17:40:48 +00:00
|
|
|
end
|
|
|
|
end
|
2010-09-24 20:12:01 +00:00
|
|
|
@@connections[service]
|
|
|
|
end
|
2010-09-18 17:40:48 +00:00
|
|
|
|
2010-09-24 20:12:01 +00:00
|
|
|
def services
|
|
|
|
[:storage]
|
2010-09-18 17:40:48 +00:00
|
|
|
end
|
2010-09-24 20:12:01 +00:00
|
|
|
|
2010-09-18 17:40:48 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|