Sha256: 0093fe44ca761ac6c7a880977ef039f8cebaf50899a6aba6027de2151dcbf1bd

Contents?: true

Size: 557 Bytes

Versions: 33

Compression:

Stored size: 557 Bytes

Contents

class Dynect < Fog::Bin
  class << self
    def class_for(key)
      case key
      when :dns
        Fog::DNS::Dynect
      else
        raise ArgumentError, "Unrecognized service: #{key}"
      end
    end

    def [](service)
      @@connections ||= Hash.new do |hash, key|
        hash[key] = case key
        when :dns
          Fog::DNS.new(:provider => 'Dynect')
        else
          raise ArgumentError, "Unrecognized service: #{service}"
        end
      end
      @@connections[service]
    end

    def services
      [:dns]
    end
  end
end

Version data entries

33 entries across 31 versions & 6 rubygems

Version Path
fog-dynect-0.4.0 lib/fog/bin/dynect.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-dynect-0.0.3/lib/fog/bin/dynect.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-dynect-0.0.3/lib/fog/bin/dynect.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-dynect-0.0.3/lib/fog/bin/dynect.rb
fog-dynect-0.3.0 lib/fog/bin/dynect.rb
fog-dynect-0.2.0 lib/fog/bin/dynect.rb
fog-dynect-0.1.0 lib/fog/bin/dynect.rb
fog-dynect-0.0.3 lib/fog/bin/dynect.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/bin/dynect.rb
fog-dynect-0.0.2 lib/fog/bin/dynect.rb
fog-1.33.0 lib/fog/bin/dynect.rb
fog-1.32.0 lib/fog/bin/dynect.rb
fog-1.31.0 lib/fog/bin/dynect.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/bin/dynect.rb
fog-1.30.0 lib/fog/bin/dynect.rb
fog-1.29.0 lib/fog/bin/dynect.rb
fog-1.28.0 lib/fog/bin/dynect.rb
fog-1.27.0 lib/fog/bin/dynect.rb
fog-1.26.0 lib/fog/bin/dynect.rb
fog-1.25.0 lib/fog/bin/dynect.rb