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

Version Path
cfndsl-0.16.13 lib/cfnlego/cloudformation.rb
cfndsl-0.16.12 lib/cfnlego/cloudformation.rb
cfndsl-0.16.11 lib/cfnlego/cloudformation.rb
cfndsl-0.16.10 lib/cfnlego/cloudformation.rb
cfndsl-0.16.9 lib/cfnlego/cloudformation.rb
cfndsl-0.16.8 lib/cfnlego/cloudformation.rb
cfndsl-0.16.7 lib/cfnlego/cloudformation.rb
cfndsl-0.16.6 lib/cfnlego/cloudformation.rb
cfndsl-0.16.5 lib/cfnlego/cloudformation.rb
cfndsl-0.16.3 lib/cfnlego/cloudformation.rb
cfndsl-0.16.2 lib/cfnlego/cloudformation.rb
cfndsl-0.16.1 lib/cfnlego/cloudformation.rb
cfndsl-0.15.3 lib/cfnlego/cloudformation.rb
cfndsl-0.15.2 lib/cfnlego/cloudformation.rb
cfndsl-0.15.1 lib/cfnlego/cloudformation.rb
cfndsl-0.15.0 lib/cfnlego/cloudformation.rb
cfndsl-0.14.0 lib/cfnlego/cloudformation.rb