line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::Setup::Path::Config; |
2
|
41
|
|
|
41
|
|
194
|
use strict; |
|
41
|
|
|
|
|
66
|
|
|
41
|
|
|
|
|
1243
|
|
3
|
41
|
|
|
41
|
|
182
|
use warnings; |
|
41
|
|
|
|
|
73
|
|
|
41
|
|
|
|
|
1061
|
|
4
|
41
|
|
|
41
|
|
177
|
use base 'Module::Setup::Path::Base'; |
|
41
|
|
|
|
|
56
|
|
|
41
|
|
|
|
|
2811
|
|
5
|
|
|
|
|
|
|
|
6
|
41
|
|
|
41
|
|
199
|
use YAML (); |
|
41
|
|
|
|
|
84
|
|
|
41
|
|
|
|
|
707
|
|
7
|
|
|
|
|
|
|
|
8
|
41
|
|
|
41
|
|
164
|
use Module::Setup; |
|
41
|
|
|
|
|
67
|
|
|
41
|
|
|
|
|
956
|
|
9
|
41
|
|
|
41
|
|
173
|
use Module::Setup::Path::File; |
|
41
|
|
|
|
|
70
|
|
|
41
|
|
|
|
|
6550
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
319
|
|
|
319
|
0
|
600
|
my($class, @path) = @_; |
13
|
319
|
|
|
|
|
957
|
my $self = $class->SUPER::new(@path); |
14
|
319
|
|
|
|
|
902
|
$self->{path} = Module::Setup::Path::File->new(@path); |
15
|
319
|
|
|
|
|
25735
|
$self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub dump { |
19
|
87
|
|
|
87
|
0
|
225
|
my($self, $config) = @_; |
20
|
87
|
|
|
|
|
565
|
Module::Setup::log($self, "Dump config " . $self->path); |
21
|
87
|
|
|
|
|
382
|
YAML::DumpFile($self->path, $config); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub load { |
25
|
93
|
|
|
93
|
0
|
150
|
my $self = shift; |
26
|
93
|
|
|
|
|
308
|
YAML::LoadFile( $self->path ); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |