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'
|
||||
Fog::DNS::Slicehost.new(attributes)
|
||||
when :zerigo
|
||||
require 'fog/dns/zerigo'
|
||||
require 'fog/zerigo/dns'
|
||||
Fog::DNS::Zerigo.new(attributes)
|
||||
else
|
||||
raise ArgumentError.new("#{provider} is not a recognized dns provider")
|
||||
|
|
|
@ -5,7 +5,7 @@ module Fog
|
|||
|
||||
extend Fog::Provider
|
||||
|
||||
service(:dns, 'dns/zerigo')
|
||||
service(:dns, 'zerigo/dns')
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,13 +5,13 @@ module Fog
|
|||
requires :zerigo_email, :zerigo_token
|
||||
recognizes :host, :persistent, :port, :scheme, :timeout
|
||||
|
||||
model_path 'fog/dns/models/zerigo'
|
||||
model_path 'fog/zerigo/models/dns'
|
||||
model :record
|
||||
collection :records
|
||||
model :zone
|
||||
collection :zones
|
||||
|
||||
request_path 'fog/dns/requests/zerigo'
|
||||
request_path 'fog/zerigo/requests/dns'
|
||||
request :count_hosts
|
||||
request :count_zones
|
||||
request :create_host
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/dns/models/zerigo/record'
|
||||
require 'fog/zerigo/models/dns/record'
|
||||
|
||||
module Fog
|
||||
module DNS
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/model'
|
||||
require 'fog/dns/models/zerigo/records'
|
||||
require 'fog/zerigo/models/dns/records'
|
||||
|
||||
module Fog
|
||||
module DNS
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/dns/models/zerigo/zone'
|
||||
require 'fog/zerigo/models/dns/zone'
|
||||
|
||||
module Fog
|
||||
module DNS
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class Zerigo
|
||||
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
|
||||
# in the X-Query-Count header in the list_hosts API method
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class Zerigo
|
||||
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
|
||||
# in the X-Query-Count header in the list_zones API method
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class Zerigo
|
||||
class Real
|
||||
|
||||
require 'fog/dns/parsers/zerigo/create_host'
|
||||
require 'fog/zerigo/parsers/dns/create_host'
|
||||
|
||||
# Create a new host in the specified zone
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class Zerigo
|
||||
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
|
||||
# ==== Parameters
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class Zerigo
|
||||
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
|
||||
# search to a specific zone
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class Zerigo
|
||||
class Real
|
||||
|
||||
require 'fog/dns/parsers/zerigo/get_host'
|
||||
require 'fog/zerigo/parsers/dns/get_host'
|
||||
|
||||
# get details about a given host record
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class Zerigo
|
||||
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
|
||||
# addition of hosts-count and possibly hosts.
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class Zerigo
|
||||
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
|
||||
# beginning of the current period through the time of the API call.
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class Zerigo
|
||||
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)
|
||||
#
|
|
@ -3,7 +3,7 @@ module Fog
|
|||
class Zerigo
|
||||
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)
|
||||
#
|
Loading…
Reference in a new issue