Sha256: c7ebe70822e5c4915a720ce1ceae03d49e0c85bafb8d336c57303a7272a6d353
Contents?: true
Size: 414 Bytes
Versions: 17
Compression:
Stored size: 414 Bytes
Contents
# Cfnlego module Cfnlego # CloudFormation class CloudFormation TEMPLATE = "#{File.dirname(__FILE__)}/cloudformation.erb".freeze attr_reader :resources def initialize(resources) @description = 'auto generated cloudformation cfndsl template' @resources = resources end def render erb = ERB.new(File.read(TEMPLATE), nil, '-') erb.result(binding) end end end
Version data entries
17 entries across 17 versions & 1 rubygems