Method: Retrospec::Puppet::Generators::FunctionGenerator#template_file

Defined in:
lib/retrospec/plugins/v1/plugin/generators/function_generator.rb

#template_fileObject

returns the template file name based on the test type



202
203
204
205
206
207
208
# File 'lib/retrospec/plugins/v1/plugin/generators/function_generator.rb', line 202

def template_file
  if context.test_type == 'rspec'
    'function_rspec_template.retrospec.erb'
  else
    'function_ruby_template.retrospec.erb'
  end
end