Method: PDK::Generate::PuppetObject#render_file
- Defined in:
- lib/pdk/generate/puppet_object.rb
#render_file(dest_path, template_path, data) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Render a file using the provided template and write it to disk.
198 199 200 201 202 203 204 |
# File 'lib/pdk/generate/puppet_object.rb', line 198 def render_file(dest_path, template_path, data) require 'pdk/template_file' write_file(dest_path) do PDK::TemplateFile.new(template_path, data).render end end |