Added the ability to search Zerigo records for a particular zone.

This commit is contained in:
Kevin Menard 2011-10-08 22:39:40 -04:00
parent 09b2266371
commit 38a703e3e0
1 changed files with 5 additions and 0 deletions

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