Class: Momo::CFL
- Inherits:
-
Object
- Object
- Momo::CFL
- Defined in:
- lib/momo/cfl.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ CFL
constructor
A new instance of CFL.
- #templatize ⇒ Object
Constructor Details
Instance Method Details
#templatize ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/momo/cfl.rb', line 10 def templatize() template = {"AWSTemplateFormatVersion" => "2010-09-09"} template["Description"] = @stack.description template["Mappings"] = @stack.templatize_mappings template["Resources"] = @stack.templatize_resources template["Conditions"] = @stack.templatize_conditions template["Parameters"] = @stack.templatize_params if @stack.parameters.length > 0 template["Outputs"] = @stack.templatize_outputs if @stack.outputs.length > 0 template.to_json end |