Top Level Namespace
Defined Under Namespace
Modules: CfnDsl, RefCheck
Classes: Array, Hash, Module
Instance Method Summary
collapse
Instance Method Details
#Heat(&block) ⇒ Object
107
108
109
110
111
112
113
114
115
116
117
118
|
# File 'lib/cfndsl.rb', line 107
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
|