package ballet::Git; use Mouse; use File::Spec; use Git::Repository; with 'ballet::Page'; has wiki_path => ( is => 'ro', isa => 'Str', required => 1, ); has git_repo => ( is => 'rw', isa => 'Git::Repository', lazy => 1, default => sub { my $self = shift; Git::Repository->new( git_dir => File::Spec->catdir( $self->wiki_path, '.git' ) ),; }, ); 1;