Sha256: 726f88f22cf92fa1cdc29ec2686e32f0ed7fb17cc3d1e9a28b272eb633260315
Contents?: true
Size: 690 Bytes
Versions: 7
Compression:
Stored size: 690 Bytes
Contents
class Zerigo < Fog::Bin class << self def class_for(key) case key when :dns Fog::DNS::Zerigo else raise ArgumentError, "Unrecognized service: #{key}" end end def [](service) @@connections ||= Hash.new do |hash, key| hash[key] = case key when :dns Formatador.display_line("[yellow][WARN] Zerigo[:dns] is deprecated, use Storage[:zerigo] instead[/]") Fog::DNS.new(:provider => 'Zerigo') else raise ArgumentError, "Unrecognized service: #{key.inspect}" end end @@connections[service] end def services Fog::Zerigo.services end end end
Version data entries
7 entries across 7 versions & 3 rubygems