line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Enbld::Target::Attribute::CommandConfigure; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
2710
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use parent qw/Enbld::Target::AttributeExtension::Command/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub initialize { |
9
|
46
|
|
|
46
|
0
|
307
|
my ( $self, $param ) = @_; |
10
|
|
|
|
|
|
|
|
11
|
46
|
50
|
|
|
|
189
|
if ( ! defined $param ) { |
12
|
46
|
|
|
|
|
112
|
$self->{value} = './configure'; |
13
|
46
|
|
|
|
|
84
|
$self->{is_evaluated}++; |
14
|
|
|
|
|
|
|
|
15
|
46
|
|
|
|
|
109
|
return $self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
0
|
0
|
|
|
|
0
|
if ( $param ) { |
19
|
0
|
|
|
|
|
0
|
$self->SUPER::initialize( $param ); |
20
|
0
|
|
|
|
|
0
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# empty string is valid. |
24
|
0
|
|
|
|
|
0
|
$self->{is_evaluated}++; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub validate { |
28
|
143
|
|
|
143
|
0
|
353
|
my ( $self, $string ) = @_; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
# nothing check now. |
31
|
|
|
|
|
|
|
|
32
|
143
|
|
|
|
|
1158
|
return $string; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |