Gitalist::Git::CollectionOfRepositories - Interface and partial implementation of a collection of git repositories
package My::Example::CollectionOfRepositories; use Moose::Role; use namespace::autoclean; with 'Gitalist::Git::CollectionOfRepositories'; sub _build_repositories { my $self = shift; [ $self->get_repository('Gitalist') ]; } sub _get_path_for_repository_name { my ($self, $name) = @_; '/var/example/' . $name . '.git'; } my $collection = My::Example::CollectionOfRepositories->new my $repository_list = $collection->repositories; my $only_repository = $repository_list->[0]; my $named_repository = $repo->get_repository('Gitalist');
This role provides an abstraction for a list of Repository directories.
An array of all Gitalist::Git::Repositorys.
Returns a Gitalist::Git::Repository for the given name. If $name is not a valid git repository an exception will be thrown.
$name
Gitalist::Git::CollectionOfRepositories::FromListOfDirectories, Gitalist::Git::CollectionOfRepositories::FromDirectory, Gitalist::Git::Repository.
See Gitalist for authors.
See Gitalist for the license.
To install Gitalist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gitalist
CPAN shell
perl -MCPAN -e shell install Gitalist
For more information on module installation, please visit the detailed CPAN module installation guide.