lib/bolt/pal/yaml_plan/evaluator.rb
# This is the method that Puppet calls to evaluate the plan. The name
# makes more sense for .pp plans.
#
This is the method that Puppet calls to evaluate the plan. The name
makes more sense for .pp plans.
This is the method that Puppet calls to evaluate the plan . The name makes more sense for . pp plans .
def evaluate_block_with_bindings(closure_scope, args_hash, plan)
          plan_result = closure_scope.with_local_scope(args_hash) do |scope|
            plan.steps.each do |step|
              step_result = step.evaluate(scope, self)
              scope.setvar(step.body['name'], step_result) if step.body['name']
            end
            evaluate_code_blocks(scope, plan.return)
          end
          throw :return, Puppet::Pops::Evaluator::Return.new(plan_result, nil, nil)
        end
def evaluate_block_with_bindings ( closure_scope , args_hash , plan ) plan_result = closure_scope . with_local_scope ( args_hash ) do | scope | plan . steps . each do | step | step_result = step . evaluate ( scope , self ) scope . setvar ( step . body [ 'name' ] , step_result ) if step . body [ 'name' ] end evaluate_code_blocks ( scope , plan . return ) end throw :return , Puppet :: Pops :: Evaluator :: Return . new ( plan_result , nil , nil ) end
This is the method that Puppet calls to evaluate the plan.
This is the method that Puppet calls to evaluate the plan .
closure_scope
<not_specific>
args_hash
<not_specific>
plan
<not_specific>