line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::Setup::Path::Config; |
2
|
47
|
|
|
47
|
|
264
|
use strict; |
|
47
|
|
|
|
|
111
|
|
|
47
|
|
|
|
|
3012
|
|
3
|
47
|
|
|
47
|
|
349
|
use warnings; |
|
47
|
|
|
|
|
103
|
|
|
47
|
|
|
|
|
1337
|
|
4
|
47
|
|
|
47
|
|
267
|
use base 'Module::Setup::Path::Base'; |
|
47
|
|
|
|
|
93
|
|
|
47
|
|
|
|
|
4432
|
|
5
|
|
|
|
|
|
|
|
6
|
47
|
|
|
47
|
|
271
|
use YAML (); |
|
47
|
|
|
|
|
110
|
|
|
47
|
|
|
|
|
978
|
|
7
|
|
|
|
|
|
|
|
8
|
47
|
|
|
47
|
|
292
|
use Module::Setup; |
|
47
|
|
|
|
|
97
|
|
|
47
|
|
|
|
|
1145
|
|
9
|
47
|
|
|
47
|
|
449
|
use Module::Setup::Path::File; |
|
47
|
|
|
|
|
96
|
|
|
47
|
|
|
|
|
9636
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
350
|
|
|
350
|
0
|
859
|
my($class, @path) = @_; |
13
|
350
|
|
|
|
|
2049
|
my $self = $class->SUPER::new(@path); |
14
|
350
|
|
|
|
|
1439
|
$self->{path} = Module::Setup::Path::File->new(@path); |
15
|
350
|
|
|
|
|
29880
|
$self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub dump { |
19
|
99
|
|
|
99
|
0
|
292
|
my($self, $config) = @_; |
20
|
99
|
|
|
|
|
806
|
Module::Setup::log($self, "Dump config " . $self->path); |
21
|
99
|
|
|
|
|
686
|
YAML::DumpFile($self->path, $config); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub load { |
25
|
102
|
|
|
102
|
0
|
256
|
my $self = shift; |
26
|
102
|
|
|
|
|
535
|
YAML::LoadFile( $self->path ); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |