Sha256: ae546a1fb2d3e7f537bbec878929a6bec70e6a888197b11c2859629d7170d176
Contents?: true
Size: 472 Bytes
Versions: 35
Compression:
Stored size: 472 Bytes
Contents
module Awspec::Helper module Finder module Route53 def find_hosted_zone(id) res = @route53_client.list_hosted_zones loop do res.hosted_zones.each do |hosted_zone| if hosted_zone[:name] == id || hosted_zone[:id] == '/hostedzone/' + id || hosted_zone[:id] == id return hosted_zone end end (res.next_page? && res = res.next_page) || break end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems