has _util => ( isa => 'Gitalist::Git::Util',
is => 'ro',
lazy_build => 1,
- handles => [ 'run_cmd', 'run_cmd_list', 'get_gpp_object' ],
+ handles => [ 'run_cmd',
+ 'run_cmd_list',
+ 'get_gpp_object',
+ 'gpp',
+ ],
);
sub _build__util { confess(shift() . " cannot build _util") }
return $git;
}
- has _gpp => (
+ has gpp => (
isa => 'Git::PurePerl', is => 'ro', lazy => 1,
default => sub {
my $self = shift;
}
method get_gpp_object (NonEmptySimpleStr $sha1) {
- return $self->_gpp->get_object($sha1) || undef;
+ return $self->gpp->get_object($sha1) || undef;
}
} # end class
isa_ok($util, 'Gitalist::Git::Util');
like( $util->_git, qr#/git$#, 'git binary found');
-isa_ok($util->_gpp, 'Git::PurePerl', 'gpp instance created');
+isa_ok($util->gpp, 'Git::PurePerl', 'gpp instance created');
done_testing;