Method: Cfer::Core::Stack#to_cfn

Defined in:
lib/cfer/core/stack.rb

#to_cfnString

Renders the stack into a CloudFormation template.

Returns:

  • (String)

    The final template



165
166
167
168
169
170
171
# File 'lib/cfer/core/stack.rb', line 165

def to_cfn
  if @options[:pretty_print]
    JSON.pretty_generate(to_h)
  else
    to_h.to_json
  end
end