Parrot::Configure - Conducts the execution of Configuration Steps
use Parrot::Configure; my $conf = Parrot::Configure->new; my $data = $conf->data; my $options = $conf->options; my @steps = $conf->steps; $conf->add_steps(@steps); $conf->runsteps;
This module provides provides a mean for registering, executing, and coordinating one or more Configuration steps. Please see docs/configuration.pod for further details about the configuration framework.
This module accepts no arguments to it's import method and exports no symbols.
import
new()
Basic constructor.
Accepts no arguments and returns a Parrot::Configure object.
data()
Provides access to a Parrot::Configure::Data object intended to contain initial and discovered configuration data.
Accepts no arguments and returns a Parrot::Configure::Data object.
options()
Provides access to a Parrot::Configure::Data object intended to contain CLI option data.
steps()
Provides a list of registered steps.
Accepts no arguments and returns a list in list context or an arrayref in scalar context.
add_steps()
Registers a new step to be run at the end of the execution queue.
Accepts a list and returns a Parrot::Configure object.
runsteps()
Sequentially executes step in the order they were registered. The invoking Parrot::Configure object is passed as the first argument to each steps runstep() method.
runstep()
The "runsteps()" method is largely based on code written by Brent Royal-Gordon brent@brentdax.com.
brent@brentdax.com
Joshua Hoblitt jhoblitt@cpan.org
jhoblitt@cpan.org
docs/configuration.pod, Parrot::Configure::Data, Parrot::Configure::Step, Parrot::Configure::Step::Base
To install Ruby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ruby
CPAN shell
perl -MCPAN -e shell install Ruby
For more information on module installation, please visit the detailed CPAN module installation guide.