package ballet::Git; use Mouse; 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 => $self->wiki_path ),; }, ); 1;