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

Merge pull request #550 from mogotest/add_zerigo_record_search

Added the ability to search Zerigo records for a particular zone.
This commit is contained in:
Wesley Beary 2011-10-09 08:53:19 -07:00
commit 70ebf33569

View file

@ -34,6 +34,11 @@ module Fog
super({ :zone => zone }.merge!(attributes))
end
def find(fqdn)
hosts = connection.find_hosts(fqdn, zone.id).body['hosts']
hosts.collect { |host| new(host) }
end
end
end