Method: Retrospec::Puppet::Generators::FunctionGenerator#v3_function?

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

#v3_function?(function_file) ⇒ Boolean

Returns true if the function file is a v3 function.

Returns:

  • (Boolean)

    true if the function file is a v3 function



196
197
198
199
# File 'lib/retrospec/plugins/v1/plugin/generators/function_generator.rb', line 196

def v3_function?(function_file)
  # mod_name/lib/puppet/parser/functions
  File.basename(Pathname.new(function_file).parent.parent) == 'parser'
end