2010-02-12 00:41:37 -05:00
|
|
|
module Fog
|
|
|
|
class << self
|
|
|
|
|
|
|
|
def services
|
|
|
|
services = []
|
2010-02-15 20:15:56 -05:00
|
|
|
[::AWS, ::Rackspace, ::Slicehost, ::Terremark].each do |service|
|
2010-02-12 00:41:37 -05:00
|
|
|
if service.initialized?
|
|
|
|
services << service
|
|
|
|
end
|
|
|
|
end
|
|
|
|
services
|
|
|
|
end
|
|
|
|
|
|
|
|
def flavors
|
|
|
|
flavors = {}
|
|
|
|
services.each do |service|
|
|
|
|
flavors[service] = service.flavors
|
|
|
|
end
|
|
|
|
flavors
|
|
|
|
end
|
|
|
|
|
|
|
|
def images
|
|
|
|
images = {}
|
|
|
|
services.each do |service|
|
|
|
|
images[service] = service.images
|
|
|
|
end
|
|
|
|
images
|
|
|
|
end
|
|
|
|
|
|
|
|
def servers
|
|
|
|
servers = {}
|
|
|
|
services.each do |service|
|
|
|
|
servers[service] = service.servers
|
|
|
|
end
|
|
|
|
servers
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|