mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[dns|zerigo] move zerigo dns to its own shared area (namespacing should probably be corrected)
This commit is contained in:
parent
a662046d1a
commit
0763c6370a
31 changed files with 17 additions and 17 deletions
|
@ -30,7 +30,7 @@ module Fog
|
||||||
require 'fog/dns/slicehost'
|
require 'fog/dns/slicehost'
|
||||||
Fog::DNS::Slicehost.new(attributes)
|
Fog::DNS::Slicehost.new(attributes)
|
||||||
when :zerigo
|
when :zerigo
|
||||||
require 'fog/dns/zerigo'
|
require 'fog/zerigo/dns'
|
||||||
Fog::DNS::Zerigo.new(attributes)
|
Fog::DNS::Zerigo.new(attributes)
|
||||||
else
|
else
|
||||||
raise ArgumentError.new("#{provider} is not a recognized dns provider")
|
raise ArgumentError.new("#{provider} is not a recognized dns provider")
|
||||||
|
|
|
@ -5,7 +5,7 @@ module Fog
|
||||||
|
|
||||||
extend Fog::Provider
|
extend Fog::Provider
|
||||||
|
|
||||||
service(:dns, 'dns/zerigo')
|
service(:dns, 'zerigo/dns')
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,13 +5,13 @@ module Fog
|
||||||
requires :zerigo_email, :zerigo_token
|
requires :zerigo_email, :zerigo_token
|
||||||
recognizes :host, :persistent, :port, :scheme, :timeout
|
recognizes :host, :persistent, :port, :scheme, :timeout
|
||||||
|
|
||||||
model_path 'fog/dns/models/zerigo'
|
model_path 'fog/zerigo/models/dns'
|
||||||
model :record
|
model :record
|
||||||
collection :records
|
collection :records
|
||||||
model :zone
|
model :zone
|
||||||
collection :zones
|
collection :zones
|
||||||
|
|
||||||
request_path 'fog/dns/requests/zerigo'
|
request_path 'fog/zerigo/requests/dns'
|
||||||
request :count_hosts
|
request :count_hosts
|
||||||
request :count_zones
|
request :count_zones
|
||||||
request :create_host
|
request :create_host
|
|
@ -1,5 +1,5 @@
|
||||||
require 'fog/core/collection'
|
require 'fog/core/collection'
|
||||||
require 'fog/dns/models/zerigo/record'
|
require 'fog/zerigo/models/dns/record'
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module DNS
|
module DNS
|
|
@ -1,5 +1,5 @@
|
||||||
require 'fog/core/model'
|
require 'fog/core/model'
|
||||||
require 'fog/dns/models/zerigo/records'
|
require 'fog/zerigo/models/dns/records'
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module DNS
|
module DNS
|
|
@ -1,5 +1,5 @@
|
||||||
require 'fog/core/collection'
|
require 'fog/core/collection'
|
||||||
require 'fog/dns/models/zerigo/zone'
|
require 'fog/zerigo/models/dns/zone'
|
||||||
|
|
||||||
module Fog
|
module Fog
|
||||||
module DNS
|
module DNS
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class Zerigo
|
class Zerigo
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/dns/parsers/zerigo/count_hosts'
|
require 'fog/zerigo/parsers/dns/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 Zerigo
|
class Zerigo
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/dns/parsers/zerigo/count_zones'
|
require 'fog/zerigo/parsers/dns/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 Zerigo
|
class Zerigo
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/dns/parsers/zerigo/create_host'
|
require 'fog/zerigo/parsers/dns/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 Zerigo
|
class Zerigo
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/dns/parsers/zerigo/create_zone'
|
require 'fog/zerigo/parsers/dns/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 Zerigo
|
class Zerigo
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/dns/parsers/zerigo/find_hosts'
|
require 'fog/zerigo/parsers/dns/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 Zerigo
|
class Zerigo
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/dns/parsers/zerigo/get_host'
|
require 'fog/zerigo/parsers/dns/get_host'
|
||||||
|
|
||||||
# get details about a given host record
|
# get details about a given host record
|
||||||
#
|
#
|
|
@ -3,7 +3,7 @@ module Fog
|
||||||
class Zerigo
|
class Zerigo
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/dns/parsers/zerigo/get_zone'
|
require 'fog/zerigo/parsers/dns/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 Zerigo
|
class Zerigo
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/dns/parsers/zerigo/get_zone_stats'
|
require 'fog/zerigo/parsers/dns/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 Zerigo
|
class Zerigo
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/dns/parsers/zerigo/list_hosts'
|
require 'fog/zerigo/parsers/dns/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 Zerigo
|
class Zerigo
|
||||||
class Real
|
class Real
|
||||||
|
|
||||||
require 'fog/dns/parsers/zerigo/list_zones'
|
require 'fog/zerigo/parsers/dns/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)
|
||||||
#
|
#
|
Loading…
Reference in a new issue