## Public methods
method project (NonEmptySimpleStr $project) {
my $path = $self->repo_dir->subdir($project)->resolve;
+ $self->repo_dir->resolve; # FIXME - This needs to be called, or if repo_dir contains .., it'll explode below!
+ # This is a Path::Class::Dir bug, right?
die "Directory traversal prohibited" unless $self->repo_dir->contains($path);
die "Not a valid Project" unless $self->_is_git_repo($path);
return Project->new( $self->repo_dir->subdir($project) );
Projects (git repositories). It is used for creating Project
objects to work with.
=head1 ATTRIBUTES
- =head2 repo_dir
-
- L<Path::Class::Dir> for the root of the Repo.
+ =head2 repo_dir (C<Path::Class::Dir>)
- =cut
+ The filesystem root of the Repo.
=head2 projects
- An array of L<Gitalist::Git::Project> for each valid git repo
- found in repo_dir.
+ An array of all Repos found in C<repo_dir>.
- =cut
=head1 METHODS
- =head2 project (NonEmptySimpleStr $project)
+ =head2 project (Str $project)
Returns a L<Gitalist::Git::Project> for the specified project
name.
- =cut
=head1 SEE ALSO
L<Gitalist::Git::Project>
+
=head1 AUTHORS
See L<Gitalist> for authors.