# -*- perl -*- # # Test::AutoBuild::Module 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: Module.pm,v 1.42 2007/12/10 03:16:16 danpb Exp $ =pod =head1 NAME Test::AutoBuild::Module - represents a code module to be built =head1 SYNOPSIS use Test::AutoBuild::Module; my $module = Test::AutoBuild::Module->new(name => $name, label => $label, sources => $sources, [dependencies => \@modules,] [env => \%env,] [options => \%options,] [groups => \@groups,] [dir => $directory]); $module->build(); $module->install(); =head1 DESCRIPTION The Test::AutoBuild::Module module provides a representation of a single code module to be built / tested. =head1 OPTIONS The valid configuration options for the C block are =head1 METHODS =over 4 =cut package Test::AutoBuild::Module; use strict; use warnings; use Carp qw(confess); use File::Spec::Functions qw(rel2abs catdir file_name_is_absolute catfile); use Class::MethodMaker new_with_init => "new", get_set => [qw( artifacts depends changed changes dir env groups label links name packages installed sources use_archive admin_email admin_name group_email group_name )]; use Cwd; use Log::Log4perl; =item my $module = Test::AutoBuild::Module->new(name => $name, label => $label, sources => $sources, [depends => \@modules,] [links => \%links,] [artifacts => \%artifacts,] [env => \%env,] [options => \%options,] [groups => \@groups,] [dir => $directory]); Creates a new code module object. C is a alphanumeric token for the name of the module. C