Class: Roadworker::Exporter

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Exporter

of class method



15
16
17
# File 'lib/roadworker/route53-exporter.rb', line 15

def initialize(options)
  @options = options
end

Class Method Details

.export(route53) ⇒ Object



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

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

Instance Method Details

#exportObject



19
20
21
22
23
24
25
26
27
28
# File 'lib/roadworker/route53-exporter.rb', line 19

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

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

  return result
end