Module: Fog::DNS
- Defined in:
- lib/rackspace-fog/dns.rb,
lib/rackspace-fog/aws/dns.rb,
lib/rackspace-fog/dynect/dns.rb,
lib/rackspace-fog/linode/dns.rb,
lib/rackspace-fog/zerigo/dns.rb,
lib/rackspace-fog/bluebox/dns.rb,
lib/rackspace-fog/dnsimple/dns.rb,
lib/rackspace-fog/rackspace/dns.rb,
lib/rackspace-fog/dnsmadeeasy/dns.rb,
lib/rackspace-fog/aws/models/dns/zone.rb,
lib/rackspace-fog/aws/models/dns/zones.rb,
lib/rackspace-fog/aws/models/dns/record.rb,
lib/rackspace-fog/aws/models/dns/records.rb,
lib/rackspace-fog/dynect/models/dns/zone.rb,
lib/rackspace-fog/linode/models/dns/zone.rb,
lib/rackspace-fog/zerigo/models/dns/zone.rb,
lib/rackspace-fog/bluebox/models/dns/zone.rb,
lib/rackspace-fog/dynect/models/dns/zones.rb,
lib/rackspace-fog/linode/models/dns/zones.rb,
lib/rackspace-fog/zerigo/models/dns/zones.rb,
lib/rackspace-fog/bluebox/models/dns/zones.rb,
lib/rackspace-fog/dnsimple/models/dns/zone.rb,
lib/rackspace-fog/dynect/models/dns/record.rb,
lib/rackspace-fog/linode/models/dns/record.rb,
lib/rackspace-fog/zerigo/models/dns/record.rb,
lib/rackspace-fog/bluebox/models/dns/record.rb,
lib/rackspace-fog/dnsimple/models/dns/zones.rb,
lib/rackspace-fog/dynect/models/dns/records.rb,
lib/rackspace-fog/linode/models/dns/records.rb,
lib/rackspace-fog/rackspace/models/dns/zone.rb,
lib/rackspace-fog/zerigo/models/dns/records.rb,
lib/rackspace-fog/bluebox/models/dns/records.rb,
lib/rackspace-fog/dnsimple/models/dns/record.rb,
lib/rackspace-fog/rackspace/models/dns/zones.rb,
lib/rackspace-fog/aws/requests/dns/get_change.rb,
lib/rackspace-fog/dnsimple/models/dns/records.rb,
lib/rackspace-fog/dnsmadeeasy/models/dns/zone.rb,
lib/rackspace-fog/rackspace/models/dns/record.rb,
lib/rackspace-fog/dnsmadeeasy/models/dns/zones.rb,
lib/rackspace-fog/dynect/requests/dns/get_zone.rb,
lib/rackspace-fog/dynect/requests/dns/put_zone.rb,
lib/rackspace-fog/rackspace/models/dns/records.rb,
lib/rackspace-fog/zerigo/requests/dns/get_host.rb,
lib/rackspace-fog/zerigo/requests/dns/get_zone.rb,
lib/rackspace-fog/bluebox/requests/dns/get_zone.rb,
lib/rackspace-fog/dnsmadeeasy/models/dns/record.rb,
lib/rackspace-fog/dynect/requests/dns/post_zone.rb,
lib/rackspace-fog/rackspace/models/dns/callback.rb,
lib/rackspace-fog/bluebox/requests/dns/get_zones.rb,
lib/rackspace-fog/dnsmadeeasy/models/dns/records.rb,
lib/rackspace-fog/dynect/requests/dns/get_record.rb,
lib/rackspace-fog/zerigo/requests/dns/find_hosts.rb,
lib/rackspace-fog/zerigo/requests/dns/list_hosts.rb,
lib/rackspace-fog/zerigo/requests/dns/list_zones.rb,
lib/rackspace-fog/bluebox/requests/dns/get_record.rb,
lib/rackspace-fog/dynect/requests/dns/delete_zone.rb,
lib/rackspace-fog/dynect/requests/dns/post_record.rb,
lib/rackspace-fog/linode/requests/dns/domain_list.rb,
lib/rackspace-fog/rackspace/requests/dns/callback.rb,
lib/rackspace-fog/zerigo/requests/dns/count_hosts.rb,
lib/rackspace-fog/zerigo/requests/dns/count_zones.rb,
lib/rackspace-fog/zerigo/requests/dns/create_host.rb,
lib/rackspace-fog/zerigo/requests/dns/create_zone.rb,
lib/rackspace-fog/zerigo/requests/dns/delete_host.rb,
lib/rackspace-fog/zerigo/requests/dns/delete_zone.rb,
lib/rackspace-fog/zerigo/requests/dns/update_host.rb,
lib/rackspace-fog/zerigo/requests/dns/update_zone.rb,
lib/rackspace-fog/aws/requests/dns/get_hosted_zone.rb,
lib/rackspace-fog/bluebox/requests/dns/create_zone.rb,
lib/rackspace-fog/bluebox/requests/dns/delete_zone.rb,
lib/rackspace-fog/bluebox/requests/dns/get_records.rb,
lib/rackspace-fog/bluebox/requests/dns/update_zone.rb,
lib/rackspace-fog/dnsimple/requests/dns/get_domain.rb,
lib/rackspace-fog/dnsimple/requests/dns/get_record.rb,
lib/rackspace-fog/dynect/requests/dns/post_session.rb,
lib/rackspace-fog/dynect/requests/dns/delete_record.rb,
lib/rackspace-fog/dynect/requests/dns/get_node_list.rb,
lib/rackspace-fog/linode/requests/dns/domain_create.rb,
lib/rackspace-fog/linode/requests/dns/domain_delete.rb,
lib/rackspace-fog/linode/requests/dns/domain_update.rb,
lib/rackspace-fog/aws/requests/dns/list_hosted_zones.rb,
lib/rackspace-fog/bluebox/requests/dns/create_record.rb,
lib/rackspace-fog/bluebox/requests/dns/delete_record.rb,
lib/rackspace-fog/dnsimple/requests/dns/list_domains.rb,
lib/rackspace-fog/dnsimple/requests/dns/list_records.rb,
lib/rackspace-fog/rackspace/requests/dns/add_records.rb,
lib/rackspace-fog/zerigo/requests/dns/get_zone_stats.rb,
lib/rackspace-fog/aws/requests/dns/create_hosted_zone.rb,
lib/rackspace-fog/aws/requests/dns/delete_hosted_zone.rb,
lib/rackspace-fog/dnsimple/requests/dns/create_domain.rb,
lib/rackspace-fog/dnsimple/requests/dns/create_record.rb,
lib/rackspace-fog/dnsimple/requests/dns/delete_domain.rb,
lib/rackspace-fog/dnsimple/requests/dns/delete_record.rb,
lib/rackspace-fog/dnsimple/requests/dns/update_record.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/get_domain.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/get_record.rb,
lib/rackspace-fog/rackspace/requests/dns/list_domains.rb,
lib/rackspace-fog/rackspace/requests/dns/list_records.rb,
lib/rackspace-fog/rackspace/requests/dns/modify_domain.rb,
lib/rackspace-fog/rackspace/requests/dns/modify_record.rb,
lib/rackspace-fog/rackspace/requests/dns/remove_domain.rb,
lib/rackspace-fog/rackspace/requests/dns/remove_record.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/list_domains.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/list_records.rb,
lib/rackspace-fog/rackspace/requests/dns/create_domains.rb,
lib/rackspace-fog/rackspace/requests/dns/remove_domains.rb,
lib/rackspace-fog/rackspace/requests/dns/remove_records.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/create_domain.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/create_record.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/delete_domain.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/delete_record.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/get_secondary.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/update_record.rb,
lib/rackspace-fog/rackspace/requests/dns/list_subdomains.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/list_secondary.rb,
lib/rackspace-fog/linode/requests/dns/domain_resource_list.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/create_secondary.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/delete_secondary.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/update_secondary.rb,
lib/rackspace-fog/aws/requests/dns/list_resource_record_sets.rb,
lib/rackspace-fog/linode/requests/dns/domain_resource_create.rb,
lib/rackspace-fog/linode/requests/dns/domain_resource_delete.rb,
lib/rackspace-fog/linode/requests/dns/domain_resource_update.rb,
lib/rackspace-fog/rackspace/requests/dns/list_domain_details.rb,
lib/rackspace-fog/rackspace/requests/dns/list_record_details.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/delete_all_domains.rb,
lib/rackspace-fog/aws/requests/dns/change_resource_record_sets.rb,
lib/rackspace-fog/dnsmadeeasy/requests/dns/delete_all_secondary.rb
Defined Under Namespace
Classes: AWS, Bluebox, DNSMadeEasy, DNSimple, Dynect, Linode, Rackspace, Zerigo
Class Method Summary
collapse
Class Method Details
.[](provider) ⇒ Object
4
5
6
|
# File 'lib/rackspace-fog/dns.rb', line 4
def self.[](provider)
self.new(:provider => provider)
end
|
.new(attributes) ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/rackspace-fog/dns.rb', line 8
def self.new(attributes)
attributes = attributes.dup case provider = attributes.delete(:provider).to_s.downcase.to_sym
when :aws
require 'rackspace-fog/aws/dns'
Fog::DNS::AWS.new(attributes)
when :bluebox
require 'rackspace-fog/bluebox/dns'
Fog::DNS::Bluebox.new(attributes)
when :dnsimple
require 'rackspace-fog/dnsimple/dns'
Fog::DNS::DNSimple.new(attributes)
when :dnsmadeeasy
require 'rackspace-fog/dnsmadeeasy/dns'
Fog::DNS::DNSMadeEasy.new(attributes)
when :dynect
require 'rackspace-fog/dynect/dns'
Fog::DNS::Dynect.new(attributes)
when :linode
require 'rackspace-fog/linode/dns'
Fog::DNS::Linode.new(attributes)
when :zerigo
require 'rackspace-fog/zerigo/dns'
Fog::DNS::Zerigo.new(attributes)
when :rackspace
require 'rackspace-fog/rackspace/dns'
Fog::DNS::Rackspace.new(attributes)
else
raise ArgumentError.new("#{provider} is not a recognized dns provider")
end
end
|
.providers ⇒ Object
40
41
42
|
# File 'lib/rackspace-fog/dns.rb', line 40
def self.providers
Fog.services[:dns]
end
|
.zones ⇒ Object
44
45
46
47
48
49
50
51
52
53
|
# File 'lib/rackspace-fog/dns.rb', line 44
def self.zones
zones = []
for provider in self.providers
begin
zones.concat(self[provider].zones)
rescue end
end
zones
end
|