line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
57065
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
2
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
117
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Footprintless::Plugin; |
5
|
|
|
|
|
|
|
$Footprintless::Plugin::VERSION = '1.26'; |
6
|
|
|
|
|
|
|
# ABSTRACT: The base class for footprintless plugins |
7
|
|
|
|
|
|
|
# PODNAME: Footprintless::Plugin |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
2
|
|
|
2
|
1
|
6
|
my ( $class, $config, @rest ) = @_; |
11
|
2
|
|
|
|
|
8
|
return bless( { config => $config }, $class )->_init(@rest); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub command_packages { |
15
|
1
|
|
|
1
|
1
|
3
|
my ($self) = @_; |
16
|
1
|
|
|
|
|
5
|
return ( ref($self) . "::Command" ); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub _init { |
20
|
2
|
|
|
2
|
|
8
|
return $_[0]; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
0
|
1
|
|
sub factory_methods { |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# return a map of factory methods by name |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |