Method: EasyType::Template#template
- Defined in:
- lib/easy_type/template.rb
#template(template_name, context) ⇒ String
This allows you to use an erb file. Just like in the normal Puppet classes. The file is searched in the template directory on the same level as the ruby library path. For most puppet classes this is eqal to the normal template path of a module
36 37 38 39 40 41 42 |
# File 'lib/easy_type/template.rb', line 36 def template(template_name, context) if template_name =~ /puppet:/ puppet_template(template_name, context) else local_template(template_name, context) end end |