NAME
App::hopen::G::Cmd - base class for hopen(1) operation-graph nodes
SYNOPSIS
This is the base class for graph nodes in the command graph of App::hopen. See App::hopen::Conventions.
ATTRIBUTES
made
An arrayref of the outputs from this function, which are App::hopen::Asset instances. (TODO enforce this requirement.)
FUNCTIONS
make
Adds App::hopen::Asset instances to "made" (a Cmd's asset output). Does not add the assets to the generator's asset graph, since the generator is not available as instance data. One or more parameters or arrayrefs of parameters can be given. Returns a list of the Asset
instances made. Each parameter can be:
An App::hopen::Asset or subclass (in which case made_by is updated)
A valid
target
for an App::hopen::Asset.
input_assets
Returns the assets provided as input via "make" calls in predecessor nodes. Only meaningful within _run()
(since that's when $self->scope
is populated). Returns an arrayref in scalar context or a list in list context.
run
Overrides "run" in Data::Hopen::G::Runnable to stuff "made" into the outputs if it's not already there. Note that this will replace any non-arrayref made
output.