Test::AutoBuild::Counter.3pm

Langue: en

Autres versions - même langue

Version: 2007-12-08 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Test::AutoBuild::Counter - The base class for an AutoBuild stage

SYNOPSIS

   use Test::AutoBuild::Counter;
 
   my $counter = Test::AutoBuild::Counter->new(options => \%options);
 
   # Retrieve the current counter
   $counter->value();
 
 

METHODS

my $stage = Test::AutoBuild::Counter->new(options => %options);
Creates a new counter, with the options parameter providing in any sub-class specific configuration options.
$value = $counter->option($name[, $newvalue]);
Retrieves the subclass specific configuration option specified by the $name parameter. If the $newvalue parameter is supplied, then the configuration option is updated.
$counter->generate($runtime);
This method should be implemented by subclasses to the logic required to generate the next build counter.

AUTHORS

Daniel Berrange <dan@berrange.com>, Dennis Gregorovic <dgregorovic@alum.mit.edu> Copyright (C) 2005 Daniel Berrange

SEE ALSO

perl(1), Test::AutoBuild, Test::AutoBuild::Runtime