1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/go_grid/bin.rb

31 lines
519 B
Ruby

module GoGrid
class << self
if Fog.credentials[:go_grid_api_key] && Fog.credentials[:go_grid_shared_secret]
def initialized?
true
end
def [](service)
@@connections ||= Hash.new do |hash, key|
hash[key] = case key
when :compute
Fog::GoGrid::Compute.new
end
end
@@connections[service]
end
def services
[:compute]
end
else
def initialized?
false
end
end
end
end