Method: Stax::Stack#template
- Defined in:
- lib/stax/stack/cfn.rb
#template ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/stax/stack/cfn.rb', line 20 def template body = Aws::Cfn.template(stack_name) if [:pretty] begin body = JSON.pretty_generate(JSON.parse(body)) rescue JSON::ParserError ## not valid json, may be yaml end end puts body end |