mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[dns] consolidate
This commit is contained in:
parent
a5b70181d9
commit
39b5899163
86 changed files with 40 additions and 36 deletions
lib/fog
aws.rbcore.rbdns.rb
dns
aws.rblinode.rbslicehost.rbzerigo.rb
linode.rbslicehost.rbzerigo.rbmodels
aws
linode
slicehost
zerigo
parsers
aws
change_resource_record_sets.rbcreate_hosted_zone.rbdelete_hosted_zone.rbget_change.rbget_hosted_zone.rblist_hosted_zones.rblist_resource_record_sets.rb
slicehost
zerigo
requests
aws
change_resource_record_sets.rbcreate_hosted_zone.rbdelete_hosted_zone.rbget_change.rbget_hosted_zone.rblist_hosted_zones.rblist_resource_record_sets.rb
linode
domain_create.rbdomain_delete.rbdomain_list.rbdomain_resource_create.rbdomain_resource_delete.rbdomain_resource_list.rbdomain_resource_update.rbdomain_update.rb
slicehost
create_record.rbcreate_zone.rbdelete_record.rbdelete_zone.rbget_record.rbget_records.rbget_zone.rbget_zones.rb
zerigo
|
@ -10,7 +10,7 @@ module Fog
|
||||||
|
|
||||||
service(:cdn, 'aws/cdn')
|
service(:cdn, 'aws/cdn')
|
||||||
service(:compute, 'aws/compute')
|
service(:compute, 'aws/compute')
|
||||||
service(:dns, 'aws/dns')
|
service(:dns, 'dns/aws')
|
||||||
service(:ec2, 'aws/ec2')
|
service(:ec2, 'aws/ec2')
|
||||||
service(:elb, 'aws/elb')
|
service(:elb, 'aws/elb')
|
||||||
service(:iam, 'aws/iam')
|
service(:iam, 'aws/iam')
|
||||||
|
|
|
@ -20,7 +20,6 @@ require 'fog/core/compute'
|
||||||
require 'fog/core/connection'
|
require 'fog/core/connection'
|
||||||
require 'fog/core/credentials'
|
require 'fog/core/credentials'
|
||||||
require 'fog/core/deprecation'
|
require 'fog/core/deprecation'
|
||||||
require 'fog/core/dns'
|
|
||||||
require 'fog/core/errors'
|
require 'fog/core/errors'
|
||||||
require 'fog/core/hmac'
|
require 'fog/core/hmac'
|
||||||
require 'fog/core/model'
|
require 'fog/core/model'
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
require 'fog/aws'
|
||||||
|
require 'fog/linode'
|
||||||
|
require 'fog/slicehost'
|
||||||
|
require 'fog/zerigo'
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
class DNS
|
class DNS
|
||||||
|
|
|
@ -5,13 +5,13 @@ module Fog
|
||||||
requires :aws_access_key_id, :aws_secret_access_key
|
requires :aws_access_key_id, :aws_secret_access_key
|
||||||
recognizes :host, :path, :port, :scheme, :version, :persistent
|
recognizes :host, :path, :port, :scheme, :version, :persistent
|
||||||
|
|
||||||
model_path 'fog/aws/models/dns'
|
model_path 'fog/dns/models/aws'
|
||||||
model :record
|
model :record
|
||||||
collection :records
|
collection :records
|
||||||
model :zone
|
model :zone
|
||||||
collection :zones
|
collection :zones
|
||||||
|
|
||||||
request_path 'fog/aws/requests/dns'
|
request_path 'fog/dns/requests/aws'
|
||||||
request :create_hosted_zone
|
request :create_hosted_zone
|
||||||
request :get_hosted_zone
|
request :get_hosted_zone
|
||||||
request :delete_hosted_zone
|
request :delete_hosted_zone
|
|
@ -5,13 +5,13 @@ module Fog
|
||||||
requires :linode_api_key
|
requires :linode_api_key
|
||||||
recognizes :port, :scheme, :persistent
|
recognizes :port, :scheme, :persistent
|
||||||
|
|
||||||
model_path 'fog/linode/models/dns'
|
model_path 'fog/dns/models/linode'
|
||||||
model :record
|
model :record
|
||||||
collection :records
|
collection :records
|
||||||
model :zone
|
model :zone
|
||||||
collection :zones
|
collection :zones
|
||||||
|
|
||||||
request_path 'fog/linode/requests/dns'
|
request_path 'fog/dns/models/linode'
|
||||||
request :domain_create
|
request :domain_create
|
||||||
request :domain_delete
|
request :domain_delete
|
||||||
request :domain_list
|
request :domain_list
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/aws/parsers/dns/change_resource_record_sets'
|
require 'fog/dns/parsers/aws/change_resource_record_sets'
|
||||||
|
|
||||||
# Use this action to create or change your authoritative DNS information for a zone
|
# Use this action to create or change your authoritative DNS information for a zone
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/aws/parsers/dns/create_hosted_zone'
|
require 'fog/dns/parsers/aws/create_hosted_zone'
|
||||||
|
|
||||||
# Creates a new hosted zone
|
# Creates a new hosted zone
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/aws/parsers/dns/delete_hosted_zone'
|
require 'fog/dns/parsers/aws/delete_hosted_zone'
|
||||||
|
|
||||||
# Delete a hosted zone
|
# Delete a hosted zone
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/aws/parsers/dns/get_change'
|
require 'fog/dns/parsers/aws/get_change'
|
||||||
|
|
||||||
# returns the current state of a change request
|
# returns the current state of a change request
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/aws/parsers/dns/get_hosted_zone'
|
require 'fog/dns/parsers/aws/get_hosted_zone'
|
||||||
|
|
||||||
# retrieve information about a hosted zone
|
# retrieve information about a hosted zone
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/aws/parsers/dns/list_hosted_zones'
|
require 'fog/dns/parsers/aws/list_hosted_zones'
|
||||||
|
|
||||||
# Describe all or specified instances
|
# Describe all or specified instances
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/aws/parsers/dns/list_resource_record_sets'
|
require 'fog/dns/parsers/aws/list_resource_record_sets'
|
||||||
|
|
||||||
# list your resource record sets
|
# list your resource record sets
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/slicehost/parsers/dns/create_record'
|
require 'fog/dns/parsers/slicehost/create_record'
|
||||||
|
|
||||||
# Create a new record in a DNS zone - or update an existing one
|
# Create a new record in a DNS zone - or update an existing one
|
||||||
# ==== Parameters
|
# ==== Parameters
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/slicehost/parsers/dns/create_zone'
|
require 'fog/dns/parsers/slicehost/create_zone'
|
||||||
|
|
||||||
# Create a new zone for Slicehost's DNS servers to serve/host
|
# Create a new zone for Slicehost's DNS servers to serve/host
|
||||||
# ==== Parameters
|
# ==== Parameters
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/slicehost/parsers/dns/get_record'
|
require 'fog/dns/parsers/slicehost/get_record'
|
||||||
|
|
||||||
# Get an individual DNS record from the specified zone
|
# Get an individual DNS record from the specified zone
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/slicehost/parsers/dns/get_records'
|
require 'fog/dns/parsers/slicehost/get_records'
|
||||||
|
|
||||||
# Get all the DNS records across all the DNS zones for this account
|
# Get all the DNS records across all the DNS zones for this account
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/slicehost/parsers/dns/get_zone'
|
require 'fog/dns/parsers/slicehost/get_zone'
|
||||||
|
|
||||||
# Get details of a DNS zone
|
# Get details of a DNS zone
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/slicehost/parsers/dns/get_zones'
|
require 'fog/dns/parsers/slicehost/get_zones'
|
||||||
|
|
||||||
# Get list of all DNS zones hosted on Slicehost (for this account)
|
# Get list of all DNS zones hosted on Slicehost (for this account)
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/zerigo/parsers/dns/count_hosts'
|
require 'fog/dns/parsers/zerigo/count_hosts'
|
||||||
|
|
||||||
# total number of hosts available for the specified zone. It is the same value as provided
|
# total number of hosts available for the specified zone. It is the same value as provided
|
||||||
# in the X-Query-Count header in the list_hosts API method
|
# in the X-Query-Count header in the list_hosts API method
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/zerigo/parsers/dns/count_zones'
|
require 'fog/dns/parsers/zerigo/count_zones'
|
||||||
|
|
||||||
# Total number of zones hosted Zerigo for this account. It is the same value as provided
|
# Total number of zones hosted Zerigo for this account. It is the same value as provided
|
||||||
# in the X-Query-Count header in the list_zones API method
|
# in the X-Query-Count header in the list_zones API method
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/zerigo/parsers/dns/create_host'
|
require 'fog/dns/parsers/zerigo/create_host'
|
||||||
|
|
||||||
# Create a new host in the specified zone
|
# Create a new host in the specified zone
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/zerigo/parsers/dns/create_zone'
|
require 'fog/dns/parsers/zerigo/create_zone'
|
||||||
|
|
||||||
# Create a new zone for Zerigo's DNS servers to serve/host
|
# Create a new zone for Zerigo's DNS servers to serve/host
|
||||||
# ==== Parameters
|
# ==== Parameters
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/zerigo/parsers/dns/find_hosts'
|
require 'fog/dns/parsers/zerigo/find_hosts'
|
||||||
|
|
||||||
# Get list of all the host records that match the FQDN. If desired, can limit
|
# Get list of all the host records that match the FQDN. If desired, can limit
|
||||||
# search to a specific zone
|
# search to a specific zone
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/zerigo/parsers/dns/get_host'
|
require 'fog/dns/parsers/zerigo/get_host'
|
||||||
|
|
||||||
# get details about a given host record
|
# get details about a given host record
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/zerigo/parsers/dns/get_zone'
|
require 'fog/dns/parsers/zerigo/get_zone'
|
||||||
|
|
||||||
# Get details of a DNS zone. The response is similar to list_zones, with the
|
# Get details of a DNS zone. The response is similar to list_zones, with the
|
||||||
# addition of hosts-count and possibly hosts.
|
# addition of hosts-count and possibly hosts.
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/zerigo/parsers/dns/get_zone_stats'
|
require 'fog/dns/parsers/zerigo/get_zone_stats'
|
||||||
|
|
||||||
# returns current traffic statistics about this zone. Queries is measured from the
|
# returns current traffic statistics about this zone. Queries is measured from the
|
||||||
# beginning of the current period through the time of the API call.
|
# beginning of the current period through the time of the API call.
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/zerigo/parsers/dns/list_hosts'
|
require 'fog/dns/parsers/zerigo/list_hosts'
|
||||||
|
|
||||||
# Get list of all DNS zones hosted on Slicehost (for this account)
|
# Get list of all DNS zones hosted on Slicehost (for this account)
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class DNS
|
class DNS
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/zerigo/parsers/dns/list_zones'
|
require 'fog/dns/parsers/zerigo/list_zones'
|
||||||
|
|
||||||
# Get list of all DNS zones hosted on Slicehost (for this account)
|
# Get list of all DNS zones hosted on Slicehost (for this account)
|
||||||
#
|
#
|
|
@ -5,13 +5,13 @@ module Fog
|
||||||
requires :slicehost_password
|
requires :slicehost_password
|
||||||
recognizes :host, :port, :scheme, :persistent
|
recognizes :host, :port, :scheme, :persistent
|
||||||
|
|
||||||
model_path 'fog/slicehost/models/dns'
|
model_path 'fog/dns/models/slicehost'
|
||||||
model :record
|
model :record
|
||||||
collection :records
|
collection :records
|
||||||
model :zone
|
model :zone
|
||||||
collection :zones
|
collection :zones
|
||||||
|
|
||||||
request_path 'fog/slicehost/requests/dns'
|
request_path 'fog/dns/requests/slicehost'
|
||||||
request :create_record
|
request :create_record
|
||||||
request :create_zone
|
request :create_zone
|
||||||
request :delete_record
|
request :delete_record
|
|
@ -5,13 +5,13 @@ module Fog
|
||||||
requires :zerigo_email, :zerigo_token
|
requires :zerigo_email, :zerigo_token
|
||||||
recognizes :timeout, :persistent
|
recognizes :timeout, :persistent
|
||||||
|
|
||||||
model_path 'fog/zerigo/models/dns'
|
model_path 'fog/dns/models/zerigo'
|
||||||
model :record
|
model :record
|
||||||
collection :records
|
collection :records
|
||||||
model :zone
|
model :zone
|
||||||
collection :zones
|
collection :zones
|
||||||
|
|
||||||
request_path 'fog/zerigo/requests/dns'
|
request_path 'fog/dns/models/zerigo'
|
||||||
request :count_hosts
|
request :count_hosts
|
||||||
request :count_zones
|
request :count_zones
|
||||||
request :create_host
|
request :create_host
|
|
@ -6,7 +6,7 @@ module Fog
|
||||||
extend Fog::Provider
|
extend Fog::Provider
|
||||||
|
|
||||||
service(:compute, 'linode/compute')
|
service(:compute, 'linode/compute')
|
||||||
service(:dns, 'linode/dns')
|
service(:dns, 'dns/linode')
|
||||||
|
|
||||||
def self.new(attributes = {})
|
def self.new(attributes = {})
|
||||||
location = caller.first
|
location = caller.first
|
||||||
|
|
|
@ -9,7 +9,7 @@ module Fog
|
||||||
extend Fog::Provider
|
extend Fog::Provider
|
||||||
|
|
||||||
service(:compute, 'slicehost/compute')
|
service(:compute, 'slicehost/compute')
|
||||||
service(:dns, 'slicehost/dns')
|
service(:dns, 'dns/slicehost')
|
||||||
|
|
||||||
def self.new(attributes = {})
|
def self.new(attributes = {})
|
||||||
location = caller.first
|
location = caller.first
|
||||||
|
|
|
@ -8,7 +8,7 @@ module Fog
|
||||||
|
|
||||||
extend Fog::Provider
|
extend Fog::Provider
|
||||||
|
|
||||||
service(:dns, 'zerigo/dns')
|
service(:dns, 'dns/zerigo')
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue