class Cfnlego::CloudFormation
Constants
- TEMPLATE
Attributes
resources[R]
Public Class Methods
new(resources)
click to toggle source
# File lib/cfnlego/cloudformation.rb, line 8 def initialize(resources) @description = "auto generated cloudformation cfndsl template" @resources = resources end
Public Instance Methods
render()
click to toggle source
# File lib/cfnlego/cloudformation.rb, line 14 def render erb = ERB.new(File.read(TEMPLATE), nil, '-') erb.result(binding) end