Start work splitting out Gitalist::Model::Git into smaller pieces.
[catagits/Gitalist.git] / lib / Gitalist / Git / Util.pm
CommitLineData
56b6dbe6 1use MooseX::Declare;
2
3class Gitalist::Git::Util {
4 has git => ( isa => NonEmptySimpleStr, is => 'ro', lazy_build => 1 );
5 sub _build_git {
6 my $git = File::Which::which('git');
7
8 if (!$git) {
9 die <<EOR;
10Could not find a git executable.
11Please specify the which git executable to use in gitweb.yml
12EOR
13 }
14
15 return $git;
16 }
17
18
19
20
21
22
23
24#
25} # end class