mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
f47e4c8af0
redirect,
31 lines
611 B
Ruby
31 lines
611 B
Ruby
module Fog
|
|
module Dynect
|
|
class DNS
|
|
class Real
|
|
|
|
require 'fog/dns/parsers/dynect/node_list'
|
|
|
|
def node_list(zone)
|
|
request(
|
|
:parser => Fog::Parsers::Dynect::DNS::NodeList.new,
|
|
:expects => 200,
|
|
:method => "GET",
|
|
:path => "NodeList/#{zone}",
|
|
)
|
|
end
|
|
end
|
|
|
|
class Mock
|
|
|
|
def node_list(zone)
|
|
response = Excon::Response.new
|
|
response.status = 200
|
|
response.body = [zone]
|
|
response
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|