Sha256: 468f83b8c8e821662eeb9241b1e25dc5249f89f4243f2c792b72027c419993c1
Contents?: true
Size: 297 Bytes
Versions: 3
Compression:
Stored size: 297 Bytes
Contents
module Terraformer module Templating def apply_template(erb) ERB.new(open(template_path(erb)).read, nil, "-").result(binding) end def template_path(template_name) File.join(File.expand_path(File.dirname(__FILE__)), "template", template_name) << ".erb" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
terraform-exporter-0.0.4 | lib/terraformer/templating.rb |
terraform-exporter-0.0.3 | lib/terraformer/templating.rb |
terraform-exporter-0.0.2 | lib/terraformer/templating.rb |