Method: Puppet::Pal.evaluate_script_string
- Defined in:
- lib/puppet/pal/pal_impl.rb
.evaluate_script_string(code_string) ⇒ Object
Deprecated.
Use #with_script_compiler and then evaluate_string on the given compiler - to be removed in 1.0 version
Evaluates a Puppet Language script string.
115 116 117 118 119 120 121 |
# File 'lib/puppet/pal/pal_impl.rb', line 115 def self.evaluate_script_string(code_string) # prevent the default loading of Puppet[:manifest] which is the environment's manifest-dir by default settings # by setting code_string to 'undef' with_script_compiler do |compiler| compiler.evaluate_string(code_string) end end |