# -*- perl -*- # # Test::AutoBuild::Output by Daniel Berrange # # Copyright (C) 2002-2004 Daniel Berrange # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # $Id: Output.pm,v 1.3.2.2 2004/08/16 09:05:37 danpb Exp $ =pod =head1 NAME Test::AutoBuild::Output - Generates post build output =head1 SYNOPSIS 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(); =head1 DESCRIPTION This module is used to generate post-build output such as HTML pages, email alerts. Subclasses must implement the C method to perform whatever processing they require. =head1 CONFIGURATION The valid configuration options for the C block are =head1 METHODS =over 4 =cut package Test::AutoBuild::Output; use strict; use Carp qw(confess); =pod =item 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 C method on this base class is virtual. C is the alphanumeric token for the module name. C