line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
########################################### |
2
|
|
|
|
|
|
|
package GitMeta; |
3
|
|
|
|
|
|
|
########################################### |
4
|
3
|
|
|
3
|
|
196257
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
87
|
|
5
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
81
|
|
6
|
3
|
|
|
3
|
|
2100
|
use Sysadm::Install qw(:all); |
|
3
|
|
|
|
|
243471
|
|
|
3
|
|
|
|
|
23
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = "0.05"; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
########################################### |
11
|
|
|
|
|
|
|
sub new { |
12
|
|
|
|
|
|
|
########################################### |
13
|
1
|
|
|
1
|
0
|
16
|
my($class, %options) = @_; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
3
|
my $self = { %options }; |
16
|
1
|
|
|
|
|
5
|
bless $self, $class; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
########################################### |
20
|
|
|
|
|
|
|
sub expand { |
21
|
|
|
|
|
|
|
########################################### |
22
|
0
|
|
|
0
|
0
|
|
die "You need to implement 'expand'"; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
########################################### |
26
|
|
|
|
|
|
|
sub param_check { |
27
|
|
|
|
|
|
|
########################################### |
28
|
0
|
|
|
0
|
0
|
|
my($self, @params) = @_; |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
for my $param (@params) { |
31
|
0
|
0
|
|
|
|
|
if(! exists $self->{ $param }) { |
32
|
0
|
|
|
|
|
|
die "Parameter $param missing"; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
########################################### |
38
|
|
|
|
|
|
|
sub health_check { |
39
|
|
|
|
|
|
|
########################################### |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
# Check if we have git in $PATH |
42
|
0
|
|
|
0
|
0
|
|
my( $stdout, $stderr, $rc ) = tap "git", "--version"; |
43
|
|
|
|
|
|
|
|
44
|
0
|
0
|
|
|
|
|
if( $rc ) { |
45
|
0
|
|
|
|
|
|
die "git not found in path"; |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__END__ |