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

Version Path
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/bin/zerigo.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/bin/zerigo.rb
fog-0.11.0 lib/fog/bin/zerigo.rb
fog-0.10.0 lib/fog/bin/zerigo.rb
fog4encbs-0.9.0.1 lib/fog/bin/zerigo.rb
fog4encbs-0.9.0 lib/fog/bin/zerigo.rb
fog-0.9.0 lib/fog/bin/zerigo.rb