Skip to content

Commit 027567a

Browse files
committedJan 28, 2013
Merge pull request fog#1520 from minter/rackspace_domain_search
Allow selection of domains via substring
2 parents 56676fe + 989acc7 commit 027567a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎lib/fog/rackspace/models/dns/zones.rb

+9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ def all
1313
data = service.list_domains.body['domains']
1414
load(data)
1515
end
16+
17+
# Returns all domains containing the given substring. Still limited
18+
# by the 100-domain pagination limit. Returns an empty array if
19+
# no matches.
20+
def find(substring)
21+
clear
22+
data = service.list_domains(:name => substring).body['domains']
23+
load(data)
24+
end
1625

1726
def get(zone_id)
1827
if zone_id.nil? or zone_id.to_s.empty?

0 commit comments

Comments
 (0)