Sha256: 128d082d1c48318f35d1ddc8e523cc267fcbc7715dfd152b4f2f22cbacf182d3
Contents?: true
Size: 749 Bytes
Versions: 96
Compression:
Stored size: 749 Bytes
Contents
class StormOnDemand < Fog::Bin class << self def class_for(key) case key when :compute Fog::Compute::StormOnDemand else raise ArgumentError, "Unsupported #{self} service: #{key}" end end def [](service) @@connections ||= Hash.new do |hash, key| hash[key] = case key when :compute Fog::Logger.warning("StormOnDemand[:compute] is not recommended, use Compute[:stormondemand] for portability") Fog::Compute.new(:provider => 'StormOnDemand') else raise ArgumentError, "Unrecognized service: #{key.inspect}" end end @@connections[service] end def services Fog::StormOnDemand.services end end end
Version data entries
96 entries across 96 versions & 17 rubygems