Sha256: 1a88deed1388d3c4c1bd4f828362b36021e5c4ba0e83bb9d45f18116dc0f4949

Contents?: true

Size: 642 Bytes

Versions: 17

Compression:

Stored size: 642 Bytes

Contents

module Fog
  module DNS
    extend Fog::ServicesMixin

    def self.new(orig_attributes)
      attributes = orig_attributes.dup # prevent delete from having side effects
      case attributes.delete(:provider).to_s.downcase.to_sym
      when :stormondemand
        require "fog/dns/storm_on_demand"
        Fog::DNS::StormOnDemand.new(attributes)
      else
        super(orig_attributes)
      end
    end

    def self.zones
      zones = []
      providers.each do |provider|
        begin
          zones.concat(self[provider].zones)
        rescue # ignore any missing credentials/etc
        end
      end
      zones
    end
  end
end

Version data entries

17 entries across 14 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-core-1.45.0/lib/fog/dns.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-core-2.1.0/lib/fog/dns.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-core-1.45.0/lib/fog/dns.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-core-1.45.0/lib/fog/dns.rb
fog-core-2.1.0 lib/fog/dns.rb
fog-core-2.0.0 lib/fog/dns.rb
fog-core-1.45.0 lib/fog/dns.rb
fog-core-1.44.3 lib/fog/dns.rb
fog-core-1.44.2 lib/fog/dns.rb
fog-core-1.44.1 lib/fog/dns.rb
fog-core-1.44.0 lib/fog/dns.rb
fog-core-1.43.0 lib/fog/dns.rb
fog-core-1.42.0 lib/fog/dns.rb
fog-core-1.41.0 lib/fog/dns.rb
fog-core-1.40.1 lib/fog/dns.rb
fog-core-1.40.0 lib/fog/dns.rb
fog-core-1.39.0 lib/fog/dns.rb