mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[dns|rackspace] move rackspace dns to its own shared area (namespacing should probably be corrected)
This commit is contained in:
parent
22a7278a1e
commit
a90007b7d4
22 changed files with 8 additions and 8 deletions
|
@ -33,7 +33,7 @@ module Fog
|
|||
require 'fog/zerigo/dns'
|
||||
Fog::DNS::Zerigo.new(attributes)
|
||||
when :rackspace
|
||||
require 'fog/dns/rackspace'
|
||||
require 'fog/rackspace/dns'
|
||||
Fog::DNS::Rackspace.new(attributes)
|
||||
else
|
||||
raise ArgumentError.new("#{provider} is not a recognized dns provider")
|
||||
|
|
|
@ -44,9 +44,9 @@ module Fog
|
|||
|
||||
service(:cdn, 'rackspace/cdn')
|
||||
service(:compute, 'rackspace/compute')
|
||||
service(:dns, 'rackspace/dns')
|
||||
service(:storage, 'rackspace/storage')
|
||||
service(:load_balancers, 'rackspace/load_balancers')
|
||||
service(:dns, 'dns/rackspace')
|
||||
|
||||
def self.authenticate(options)
|
||||
rackspace_auth_url = options[:rackspace_auth_url] || "auth.api.rackspacecloud.com"
|
||||
|
|
|
@ -9,13 +9,13 @@ module Fog
|
|||
recognizes :rackspace_auth_url
|
||||
recognizes :rackspace_auth_token
|
||||
|
||||
model_path 'fog/dns/models/rackspace'
|
||||
model_path 'fog/rackspace/models/dns'
|
||||
model :record
|
||||
collection :records
|
||||
model :zone
|
||||
collection :zones
|
||||
|
||||
request_path 'fog/dns/requests/rackspace'
|
||||
request_path 'fog/rackspace/requests/dns'
|
||||
#TODO - Import/Export, modify multiple domains, modify multiple records
|
||||
request :callback
|
||||
request :list_domains
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/model'
|
||||
require 'fog/dns/models/rackspace/callback'
|
||||
require 'fog/rackspace/models/dns/callback'
|
||||
|
||||
module Fog
|
||||
module DNS
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/dns/models/rackspace/record'
|
||||
require 'fog/rackspace/models/dns/record'
|
||||
|
||||
module Fog
|
||||
module DNS
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/model'
|
||||
require 'fog/dns/models/rackspace/records'
|
||||
require 'fog/rackspace/models/dns/records'
|
||||
|
||||
module Fog
|
||||
module DNS
|
|
@ -1,5 +1,5 @@
|
|||
require 'fog/core/collection'
|
||||
require 'fog/dns/models/rackspace/zone'
|
||||
require 'fog/rackspace/models/dns/zone'
|
||||
|
||||
module Fog
|
||||
module DNS
|
Loading…
Reference in a new issue