Test::AutoBuild::Output - Generates post build output
use Test::AutoBuild::Output my $output = Test::AutoBuild::Output->new(name => $name, label => $label, [options => \%options,] [start_time => $time]); my $name = $output->name([$newname]); my $label = $output->label([$newlabel]); my $time = $output->startTime([$newtime]); my $value = $output->option([$newvalue]); $output->process();
This module is used to generate post-build output such as HTML pages, email alerts. Subclasses must implement the process method to perform whatever processing they require.
process
The valid configuration options for the output block are
output
my $output = Test::AutoBuild::Output->new(name => $name, label => $label, [options => \%options,] [start_time => $time]);
Creates a new output module. This constructor is only really useful to subclasses, since the process method on this base class is virtual. name is the alphanumeric token for the module name. label is the free text human friendly title of the module. options is a hash ref containing module specific configuration options. start_time is the time at which the build cycle began.
name
label
options
start_time
my $name = $output->new([$newname]);
Retrieves the name of the output module, which is an alphanumeric token. If the newname parameter is supplied the name is updated.
newname
my $value = $output->option($name[, $newvalue]);
Retrieves the option value corresponding to the name parameter. If the newvalue parameter is supplied, then the option value is updated.
newvalue
my $label = $output->label([$newlabel]);
Retrieves the label for this output module, a free text, human friendly title for the module. If the newlabel parameter is supplied the label is updated.
newlabel
my $time = $output->start_time([$newtime]);
Retrieves the time at which the build cycle was started. If the newtime parameter is supplied the start time is updated.
newtime
$output->process(\%modules, \%groups, \%repositories, \%packageTypes);
Runs the output module. modules is a hash ref of all code modules, whose keys are module names & values are instances of Test::AutoBuild::Module. groups is a hash ref of all groups whose keys are group names & values are instances of Test::AutoBuild::Group. repositories is a hash ref of code repositories whose keys are repository names and values are instances of Test::AutoBuild::Repository. pacakgeTypes is a hash ref of package types whose keys are names and values are instances of Test::AutoBuild::PackageType
modules
groups
repositories
pacakgeTypes
Daniel Berrange <dan@berrange.com>
Copyright (C) 2002-2004 Daniel Berrange <dan@berrange.com>
perl(1)
2 POD Errors
The following errors were encountered while parsing the POD:
You can't have =items (as at line 70) unless the first thing after the =over is an =item
=back doesn't take any parameters, but you said =back 4
To install Test::AutoBuild, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::AutoBuild
CPAN shell
perl -MCPAN -e shell install Test::AutoBuild
For more information on module installation, please visit the detailed CPAN module installation guide.