NAME
Gitalist::Git::CollectionOfRepositories::FromDirectory - Model of a repository directory
SYNOPSIS
my $repo = Gitalist::Git::CollectionOfRepositories::FromDirectory->new( repo_dir => $Dir );
my $repository_list = $repo->repositories;
my $first_repository = $repository_list->[0];
my $named_repository = $repo->get_repository('Gitalist');
DESCRIPTION
This class provides a list of Repositories found in the given directory.
ATTRIBUTES
repo_dir (Path::Class::Dir
)
The filesystem root of the Repo
.
repositories
An array of all Gitalist::Git::Repositorys found in repo_dir
.
METHODS
get_repository (Str $name)
Returns a Gitalist::Git::Repository for the given name. If $name
is not a valid git repository under $repo_dir
, an exception will be thrown.
SEE ALSO
AUTHORS
See Gitalist for authors.
LICENSE
See Gitalist for the license.