Build::Hopen::G::Runnable - parent class for runnable things in a hopen graph
Anything with "run" inherits from this. TODO should this be a role?
Inputs this Runnable requires. A Build::Hopen::Util::NameSet, with the restriction that need may not contain regexes. ("Sorry, I can't run unless you give me every variable in the world that starts with Q." I don't think so!)
need
If defined, a Build::Hopen::Scope that will have the final say on the data used by "run". This is the basis of the fine-grained override mechanism in hopen.
Inputs this Runnable accepts but does not require. A Build::Hopen::Util::NameSet, which may include regexes.
Run the operation, whatever that means. Usage:
my $hrOutputs = $op->run([$outer_scope])
$hrOutputs is guaranteed to be a new hash, not the same hash as $hrInputs.
$hrOutputs
$hrInputs
The $outer_scope should include the inputs the caller wants to pass to the Runnable. The Runnable itself should use its own "scope", usually by setting $self->scope->outer($outer_scope) for the duration of the run() call.
$outer_scope
$self->scope->outer($outer_scope)
run()
To install Build::Hopen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Build::Hopen
CPAN shell
perl -MCPAN -e shell install Build::Hopen
For more information on module installation, please visit the detailed CPAN module installation guide.