Sha256: ff8a4ff9d14983d89f9fac25341ccce38a5b0214d99c93a911fa7cddf98d1fc3

Contents?: true

Size: 749 Bytes

Versions: 17

Compression:

Stored size: 749 Bytes

Contents

module Awspec::Helper
  module Finder
    module Route53
      def find_hosted_zone(id)
        hosted_zones = {}
        marker = nil
        loop do
          res = @route53_client.list_hosted_zones({
                                                    marker: marker
                                                  })
          marker = res.marker
          break if res.hosted_zones.empty?
          res.hosted_zones.each do |hosted_zone|
            hosted_zones[hosted_zone[:name]] = hosted_zones
            if hosted_zone[:name] == id || hosted_zone[:id] == '/hostedzone/' + id || hosted_zone[:id] == id
              return hosted_zone
            end
          end

          break if marker.nil?
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
awspec-0.9.0 lib/awspec/helper/finder/route53.rb
awspec-0.8.1 lib/awspec/helper/finder/route53.rb
awspec-0.8.0 lib/awspec/helper/finder/route53.rb
awspec-0.7.0 lib/awspec/helper/finder/route53.rb
awspec-0.6.4 lib/awspec/helper/finder/route53.rb
awspec-0.6.3 lib/awspec/helper/finder/route53.rb
awspec-0.6.2 lib/awspec/helper/finder/route53.rb
awspec-0.6.1 lib/awspec/helper/finder/route53.rb
awspec-0.6.0 lib/awspec/helper/finder/route53.rb
awspec-0.5.0 lib/awspec/helper/finder/route53.rb
awspec-0.4.1 lib/awspec/helper/finder/route53.rb
awspec-0.4.0 lib/awspec/helper/finder/route53.rb
awspec-0.3.0 lib/awspec/helper/finder/route53.rb
awspec-0.2.3 lib/awspec/helper/finder/route53.rb
awspec-0.2.2 lib/awspec/helper/finder/route53.rb
awspec-0.2.1 lib/awspec/helper/finder/route53.rb
awspec-0.2.0 lib/awspec/helper/finder/route53.rb