1
0
Fork 0
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:
geemus 2011-08-29 10:37:01 -05:00
parent 22a7278a1e
commit a90007b7d4
22 changed files with 8 additions and 8 deletions

View file

@ -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")

View file

@ -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"

View file

@ -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

View file

@ -1,5 +1,5 @@
require 'fog/core/model'
require 'fog/dns/models/rackspace/callback'
require 'fog/rackspace/models/dns/callback'
module Fog
module DNS

View file

@ -1,5 +1,5 @@
require 'fog/core/collection'
require 'fog/dns/models/rackspace/record'
require 'fog/rackspace/models/dns/record'
module Fog
module DNS

View file

@ -1,5 +1,5 @@
require 'fog/core/model'
require 'fog/dns/models/rackspace/records'
require 'fog/rackspace/models/dns/records'
module Fog
module DNS

View file

@ -1,5 +1,5 @@
require 'fog/core/collection'
require 'fog/dns/models/rackspace/zone'
require 'fog/rackspace/models/dns/zone'
module Fog
module DNS