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

Version Path
awspec-0.18.1 lib/awspec/helper/finder/route53.rb
awspec-0.18.0 lib/awspec/helper/finder/route53.rb
awspec-0.17.1 lib/awspec/helper/finder/route53.rb
awspec-0.17.0 lib/awspec/helper/finder/route53.rb
awspec-0.16.0 lib/awspec/helper/finder/route53.rb
awspec-0.15.0 lib/awspec/helper/finder/route53.rb
awspec-0.14.1 lib/awspec/helper/finder/route53.rb
awspec-0.14.0 lib/awspec/helper/finder/route53.rb
awspec-0.13.0 lib/awspec/helper/finder/route53.rb
awspec-0.12.1 lib/awspec/helper/finder/route53.rb
awspec-0.12.0 lib/awspec/helper/finder/route53.rb
awspec-0.11.0 lib/awspec/helper/finder/route53.rb
awspec-0.10.2 lib/awspec/helper/finder/route53.rb
awspec-0.10.1 lib/awspec/helper/finder/route53.rb
awspec-0.10.0 lib/awspec/helper/finder/route53.rb