1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/dns/requests/dynect/node_list.rb

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