fog--fog/lib/fog/google/bin.rb

21 lines
309 B
Ruby
Raw Normal View History

2010-09-24 20:12:01 +00:00
class Google < Fog::Bin
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
end
end
2010-09-24 20:12:01 +00:00
@@connections[service]
end
2010-09-24 20:12:01 +00:00
def services
[:storage]
end
2010-09-24 20:12:01 +00:00
end
end