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:
parent
c8afffc516
commit
11161fe388
4 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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" => {
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue