1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Fog::DNS::Dynect, not Fog::Dynect::DNS.

This commit is contained in:
Dylan Egan 2011-09-01 15:03:36 -07:00
parent c8afffc516
commit 11161fe388
4 changed files with 5 additions and 5 deletions

View file

@ -21,7 +21,7 @@ module Fog
class Mock
def get_node_list(zone, options = {})
raise Fog::Dynect::DNS::NotFound unless zone = self.data[:zones][zone]
raise Fog::DNS::Dynect::NotFound unless zone = self.data[:zones][zone]
response = Excon::Response.new
response.status = 200

View file

@ -31,13 +31,13 @@ module Fog
'RP', 'SOA', 'SPF', 'SRV',
'SSHFP', 'TXT'
].include? type
raise Fog::Dynect::DNS::NotFound unless zone = self.data[:zones][zone]
raise Fog::DNS::Dynect::NotFound unless zone = self.data[:zones][zone]
response = Excon::Response.new
response.status = 200
if record_id = options['record_id']
raise Fog::Dynect::DNS::NotFound unless record = zone[:records][type].first { |record| record[:record_id] == record_id }
raise Fog::DNS::Dynect::NotFound unless record = zone[:records][type].first { |record| record[:record_id] == record_id }
response.body = {
"status" => "success",
"data" => {

View file

@ -25,7 +25,7 @@ module Fog
class Mock
def post_record(type, zone, fqdn, rdata, options = {})
raise Fog::Dynect::DNS::NotFound unless zone = self.data[:zones][zone]
raise Fog::DNS::Dynect::NotFound unless zone = self.data[:zones][zone]
records = zone[:records]
record_id = zone[:next_record_id]

View file

@ -24,7 +24,7 @@ module Fog
class Mock
def put_zone(zone, options = {})
raise Fog::Dynect::DNS::NotFound unless zone = self.data[:zones][zone]
raise Fog::DNS::Dynect::NotFound unless zone = self.data[:zones][zone]
raise ArgumentError unless options.size == 1