Class: Kelbim::DSL::Converter
- Inherits:
-
Object
- Object
- Kelbim::DSL::Converter
- Defined in:
- lib/kelbim/dsl/converter.rb
Class Method Summary collapse
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(exported, instance_names) ⇒ Converter
constructor
of class methods.
Constructor Details
#initialize(exported, instance_names) ⇒ Converter
of class methods
10 11 12 13 |
# File 'lib/kelbim/dsl/converter.rb', line 10 def initialize(exported, instance_names) @exported = exported @instance_names = instance_names end |
Class Method Details
.convert(exported, instance_names) ⇒ Object
5 6 7 |
# File 'lib/kelbim/dsl/converter.rb', line 5 def convert(exported, instance_names) self.new(exported, instance_names).convert end |
Instance Method Details
#convert ⇒ Object
15 16 17 18 19 |
# File 'lib/kelbim/dsl/converter.rb', line 15 def convert @exported.each.map {|vpc, load_balancers| output_ec2(vpc, load_balancers) }.join("\n") end |