Added the ability to search Zerigo records for a particular zone.
This commit is contained in:
parent
09b2266371
commit
38a703e3e0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue