line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dist::Joseki::DistType::Base; |
2
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
55
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.20'; |
5
|
1
|
|
|
1
|
|
98
|
use base qw(Dist::Joseki::Base); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
731
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub _call_action { |
8
|
0
|
|
|
0
|
|
|
my ($self, $action) = @_; |
9
|
0
|
0
|
|
|
|
|
return if $self->{_completed_actions}{$action}++; |
10
|
0
|
|
|
|
|
|
local $self->{action} = $action; |
11
|
0
|
|
|
|
|
|
my $method = "ACTION_$action"; |
12
|
0
|
|
|
|
|
|
$self->$method; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub depends_on { |
16
|
0
|
|
|
0
|
0
|
|
my ($self, @depend) = @_; |
17
|
0
|
|
|
|
|
|
$self->_call_action($_) for @depend; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub finish { |
21
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
22
|
0
|
|
|
|
|
|
$self->ACTION_distclean; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
__END__ |