Class: Roadworker::Exporter

Inherits:
Object
  • Object
show all
Includes:
Utils::Helper
Defined in:
lib/roadworker/route53-exporter.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Utils::Helper

#matched_zone?

Constructor Details

#initialize(options) ⇒ Exporter

of class method



11
12
13
# File 'lib/roadworker/route53-exporter.rb', line 11

def initialize(options)
  @options = options
end

Class Method Details

.export(route53) ⇒ Object



6
7
8
# File 'lib/roadworker/route53-exporter.rb', line 6

def export(route53)
  self.new(route53).export
end

Instance Method Details

#exportObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/roadworker/route53-exporter.rb', line 15

def export
  result = {
    :health_checks => HealthCheck.health_checks(@options.route53),
  }

  hosted_zones = result[:hosted_zones] = []
  export_hosted_zones(hosted_zones)

  return result
end