Class: Roadworker::DSL::Converter
- Inherits:
-
Object
- Object
- Roadworker::DSL::Converter
- Defined in:
- lib/roadworker/dsl-converter.rb
Class Method Summary collapse
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(exported) ⇒ Converter
constructor
of class method.
Constructor Details
#initialize(exported) ⇒ Converter
of class method
10 11 12 13 |
# File 'lib/roadworker/dsl-converter.rb', line 10 def initialize(exported) @health_checks = exported[:health_checks] @hosted_zones = exported[:hosted_zones] end |
Class Method Details
.convert(exported) ⇒ Object
5 6 7 |
# File 'lib/roadworker/dsl-converter.rb', line 5 def convert(exported) self.new(exported).convert end |
Instance Method Details
#convert ⇒ Object
15 16 17 |
# File 'lib/roadworker/dsl-converter.rb', line 15 def convert @hosted_zones.map {|i| output_zone(i) }.join("\n") end |