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.25.1 lib/awspec/helper/finder/route53.rb
awspec-0.25.0 lib/awspec/helper/finder/route53.rb
awspec-0.24.2 lib/awspec/helper/finder/route53.rb
awspec-0.24.1 lib/awspec/helper/finder/route53.rb
awspec-0.24.0 lib/awspec/helper/finder/route53.rb
awspec-0.23.0 lib/awspec/helper/finder/route53.rb
awspec-0.22.1 lib/awspec/helper/finder/route53.rb
awspec-0.22.0 lib/awspec/helper/finder/route53.rb
awspec-0.21.6 lib/awspec/helper/finder/route53.rb
awspec-0.21.5 lib/awspec/helper/finder/route53.rb
awspec-0.21.4 lib/awspec/helper/finder/route53.rb
awspec-0.21.3 lib/awspec/helper/finder/route53.rb
awspec-0.21.2 lib/awspec/helper/finder/route53.rb
awspec-0.21.1 lib/awspec/helper/finder/route53.rb
awspec-0.21.0 lib/awspec/helper/finder/route53.rb
awspec-0.20.2 lib/awspec/helper/finder/route53.rb
awspec-0.20.1 lib/awspec/helper/finder/route53.rb
awspec-0.20.0 lib/awspec/helper/finder/route53.rb
awspec-0.19.0 lib/awspec/helper/finder/route53.rb
awspec-0.18.2 lib/awspec/helper/finder/route53.rb