Sha256: e36dc98e1c0539012df656308287b4f1d783b2e2ffbdfd689144f2e4e62591e1

Contents?: true

Size: 438 Bytes

Versions: 13

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

# Cfnlego
module Cfnlego
  # CloudFormation
  class CloudFormation
    TEMPLATE = "#{File.dirname(__FILE__)}/cloudformation.erb"

    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

13 entries across 13 versions & 1 rubygems

Version Path
cfndsl-1.0.5 lib/cfndsl/cfnlego/cloudformation.rb
cfndsl-1.0.4 lib/cfndsl/cfnlego/cloudformation.rb
cfndsl-1.0.3 lib/cfndsl/cfnlego/cloudformation.rb
cfndsl-1.0.2 lib/cfndsl/cfnlego/cloudformation.rb
cfndsl-1.0.1 lib/cfndsl/cfnlego/cloudformation.rb
cfndsl-1.0.0 lib/cfndsl/cfnlego/cloudformation.rb
cfndsl-0.17.5 lib/cfnlego/cloudformation.rb
cfndsl-1.0.0.pre.1 lib/cfndsl/cfnlego/cloudformation.rb
cfndsl-0.17.4 lib/cfnlego/cloudformation.rb
cfndsl-0.17.3 lib/cfnlego/cloudformation.rb
cfndsl-0.17.2 lib/cfnlego/cloudformation.rb
cfndsl-0.17.1 lib/cfnlego/cloudformation.rb
cfndsl-0.17.0 lib/cfnlego/cloudformation.rb