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