Method: Puppet::Pal::Compiler#evaluate_file

Defined in:
lib/puppet/pal/compiler.rb

#evaluate_file(file) ⇒ Object

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.

Evaluates a puppet language file in top scope. The file must exist and contain valid puppet language code or an error is raised.

Parameters:

  • file (Path, String)

    an absolute path to a file with puppet language code, must exist

Returns:

  • (Object)

    what the last evaluated expression in the file evaluated to



98
99
100
# File 'lib/puppet/pal/compiler.rb', line 98

def evaluate_file(file)
  evaluate(parse_file(file))
end