Sha256: c99b6fd6f8f00eb555d514a3929bc1c35bf9ce047faee5b444178515acb312e5
Contents?: true
Size: 706 Bytes
Versions: 26
Compression:
Stored size: 706 Bytes
Contents
class Clodo < Fog::Bin class << self def class_for(key) case key when :compute Fog::Compute::Clodo else raise ArgumentError, "Unrecognized service: #{key}" end end def [](service) @@connections ||= Hash.new do |hash, key| hash[key] = case key when :compute Fog::Formatador.display_line("[yellow][WARN] Clodo[:compute] is deprecated, use Compute[:clodo] instead[/]") Fog::Compute.new(:provider => 'Clodo') else raise ArgumentError, "Unrecognized service: #{key.inspect}" end end @@connections[service] end def services Fog::Clodo.services end end end
Version data entries
26 entries across 24 versions & 4 rubygems