Sha256: 025222124e5d9eda57839aa0a7170849877b9c0a9c5f5f76728fc463e8bac251
Contents?: true
Size: 701 Bytes
Versions: 17
Compression:
Stored size: 701 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 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
17 entries across 17 versions & 4 rubygems