Sha256: 15735febe8ede3c691549b231277f54e9d880ed0d1d605e20d7d66b614b76a59
Contents?: true
Size: 1.13 KB
Versions: 6
Compression:
Stored size: 1.13 KB
Contents
require File.join(File.dirname(__FILE__), 'credentials') module Fog class << self def services services = [] [::AWS, ::Local, ::Rackspace, ::Slicehost, ::Terremark, ::Vcloud, ::Bluebox].each do |service| if service.initialized? services << service end end services end def directories directories = {} services.each do |service| if service.respond_to?(:directories) directories[service] = service.directories end end directories end def flavors flavors = {} services.each do |service| if service.respond_to?(:flavors) flavors[service] = service.flavors end end flavors end def images images = {} services.each do |service| if service.respond_to?(:images) images[service] = service.images end end images end def servers servers = {} services.each do |service| if service.respond_to?(:servers) servers[service] = service.servers end end servers end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
fog-0.2.0 | lib/fog/bin.rb |
fog-0.1.10 | lib/fog/bin.rb |
fog-0.1.9 | lib/fog/bin.rb |
fog-0.1.8 | lib/fog/bin.rb |
fog-0.1.7 | lib/fog/bin.rb |
fog-0.1.6 | lib/fog/bin.rb |