Top Level Namespace
Defined Under Namespace
Modules: CfnDsl, RefCheck Classes: Array, Hash, Module
Instance Method Summary collapse
Instance Method Details
#CloudFormation(&block) ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/cfndsl.rb', line 83 def CloudFormation(&block) x = CfnDsl::CloudFormationTemplate.new x.declare(&block) invalid_references = x.check_refs if invalid_references abort invalid_references.join("\n") elsif CfnDsl::Errors.errors? abort CfnDsl::Errors.errors.join("\n") else return x end end |
#Heat(&block) ⇒ Object
96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/cfndsl.rb', line 96 def Heat(&block) x = CfnDsl::HeatTemplate.new x.declare(&block) invalid_references = x.check_refs if invalid_references abort invalid_references.join("\n") elsif CfnDsl::Errors.errors? abort CfnDsl::Errors.errors.join("\n") else return x end end |