Method: Puppet::Pal::ScriptCompiler#task_signature
- Defined in:
- lib/puppet/pal/script_compiler.rb
#task_signature(task_name) ⇒ Puppet::Pal::TaskSignature?
Returns the signature callable of the given task (the arguments it accepts, and the data type it returns)
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/puppet/pal/script_compiler.rb', line 44 def task_signature(task_name) loader = internal_compiler.loaders.private_environment_loader task = loader.load(:task, task_name) if task return TaskSignature.new(task) end # Could not find task nil end |