Gitosis::Config::Group - A class to represent a [group] block in gitosis.conf


Gitosis-Config documentation Contained in the Gitosis-Config distribution.

Index


Code Index:

NAME

Top

Gitosis::Config::Group - A class to represent a [group] block in gitosis.conf

SYNOPSIS

Top

	use Gitosis::Config::Group;
	my $group = Gitosis::Config::Group->new($group);

METHODS

Top

name

writable

members

DEPENDENCIES

Top

Moose

BUGS AND LIMITATIONS

Top

None known currently, please email the author if you find any.

AUTHOR

Top

Chris Prather (chris@prather.org)

LICENCE

Top

Copyright 2009 by Chris Prather.

This software is free. It is licensed under the same terms as Perl itself.


Gitosis-Config documentation Contained in the Gitosis-Config distribution.

package Gitosis::Config::Group;
use Moose;
use Moose::Util::TypeConstraints;

has [qw(name)] => (
    isa => 'Str',
    is  => 'rw',
);

subtype 'Gitosis::Config::Group::List' => as 'ArrayRef';
coerce 'Gitosis::Config::Group::List' => from 'Str' => via {
    [ split /\s+/, $_ ];
};

has [qw(writable members)] => (
    isa    => 'Gitosis::Config::Group::List',
    is     => 'rw',
    coerce => 1,
);

no Moose;
1;
__END__

__END__