Method: Puppet::Pal::ScriptCompiler#plan_signature

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

#plan_signature(plan_name) ⇒ Puppet::Pal::PlanSignature?

Returns the signature of the given plan name

Parameters:

  • plan_name (String)

    the name of the plan to get the signature of

Returns:



10
11
12
13
14
15
16
17
18
19
# File 'lib/puppet/pal/script_compiler.rb', line 10

def plan_signature(plan_name)
  loader = internal_compiler.loaders.private_environment_loader
  func = loader.load(:plan, plan_name)
  if func
    return PlanSignature.new(func)
  end

  # Could not find plan
  nil
end