Verby::Dispatcher - Takes steps and executes them. Sort of like what make(1) is to a


Verby documentation  | view source Contained in the Verby distribution.

Index


NAME

Top

Verby::Dispatcher - Takes steps and executes them. Sort of like what make(1) is to a Makefile.

SYNOPSIS

Top

	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;

DESCRIPTION

Top

ATTRIBUTES

Top

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.

METHODS

Top

new

Returns a new Verby::Dispatcher. Duh!

add_steps *@steps
add_step *@steps

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.

do_all

Calculate all the dependencies, and then dispatch in order.


Verby documentation  | view source Contained in the Verby distribution.