# -*- perl -*- # # Test::AutoBuild::Group 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: Group.pm,v 1.7 2007/12/08 21:03:02 danpb Exp $ =pod =head1 NAME Test::AutoBuild::Group - Simple grouping of modules =head1 SYNOPSIS use Test::AutoBuild::Group my $group = Test::AutoBuild::Group->new(name => $name, label => $label, modules => \@modules, options => \%options); my $name = $group->name([$newname]); my $label = $group->label([$newlabel]); my $admin = $group->admin([$newadmin]); my \@modules = $group->modules([\@modules]); my $value = $group->option($name[, $newvalue]); =head1 DESCRIPTION The Test::AutoBuild::Group module provides for simple grouping of modules. Its primary purpose is to allow the list of modules in HTML status pages to be split up into groups for easy browsing. =head1 CONFIGURATION The valid configuration options for the C block are =head1 METHODS =over 4 =cut package Test::AutoBuild::Group; use strict; use warnings; use Carp qw(confess); use Class::MethodMaker get_set => [qw( name label modules admin enabled )]; use Digest::MD5; =item my $group = Test::AutoBuild::Group->new(name => $name, label => $label, [modules => \@modules,] [admin => $admin,] [options => \%options]); Creates a new group object. C is an array ref of Test::AutoBUild::Module objects representing the members of the group. C is a short alphanumeric token for the name of the group. C