Verby::Dispatcher - Takes steps and executes them. Sort of like what make(1) is to a Makefile.
use Verby::Dispatcher; use Verby::Config::Data; # or something equiv my $c = Verby::Config::Data->new(); # ... needs the "logger" field set my $d = Verby::Dispatcher->new; $d->config_hub($c); $d->add_steps(@steps); $d->do_all;
If provided with a POE::Component::ResourcePool instance, that resource pool will be used to handle resource allocation.
The "resources" in Verby::Step method is used to declare the required resources for each step.
Returns the Set::Object that is used for internal bookkeeping of the steps involved.
Returns the Set::Object that is used to track which steps are satisfied.
The configuration hub that all contexts inherit from.
Defaults to an empty parameter set.
The global context objects.
Defaults to a derivation of config_hub.
Returns a new Verby::Dispatcher. Duh!
Add a number of steps into the dispatcher pool.
Anything returned from "depends" in Verby::Step is aggregated recursively here, and added into the batch too.
Calculate all the dependencies, and then dispatch in order.