Module: Fog::DNS
- Extended by:
- ServicesMixin
- Defined in:
- lib/fog/dns.rb
Class Method Summary collapse
Methods included from ServicesMixin
Class Method Details
.new(orig_attributes) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/fog/dns.rb', line 5 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 |
.zones ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fog/dns.rb', line 16 def self.zones zones = [] providers.each do |provider| begin zones.concat(self[provider].zones) rescue # ignore any missing credentials/etc end end zones end |