class ForemanDebian::Template::Storage

Public Instance Methods

render(template_name) click to toggle source
# File lib/foreman_debian/template.rb, line 5
def render(template_name)
  templates_dir = Pathname.new(__FILE__).dirname.dirname.dirname.join('templates')
  template = templates_dir.join("#{template_name}.erb")
  ERB.new(template.read).result(binding)
end