summary refs log tree commit diff
path: root/lib/ballet/Git.pm
blob: 6ade622b47644f2951d7f9d3f83b84b0a566d4e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;