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:
commit
70ebf33569
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue