Method: Retrospec::Puppet::Generators::FunctionGenerator#generate_function_file
- Defined in:
- lib/retrospec/plugins/v1/plugin/generators/function_generator.rb
#generate_function_file(template = nil) ⇒ Object
generates the function file based on the template and context
127 128 129 130 131 |
# File 'lib/retrospec/plugins/v1/plugin/generators/function_generator.rb', line 127 def generate_function_file(template = nil) template ||= function_file_path safe_create_template_file(function_path, template, context) function_path end |