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