line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::Setup::Path::Flavor; |
2
|
41
|
|
|
41
|
|
176
|
use strict; |
|
41
|
|
|
|
|
58
|
|
|
41
|
|
|
|
|
1119
|
|
3
|
41
|
|
|
41
|
|
164
|
use warnings; |
|
41
|
|
|
|
|
49
|
|
|
41
|
|
|
|
|
1085
|
|
4
|
41
|
|
|
41
|
|
170
|
use base 'Module::Setup::Path::Base'; |
|
41
|
|
|
|
|
47
|
|
|
41
|
|
|
|
|
16465
|
|
5
|
|
|
|
|
|
|
|
6
|
41
|
|
|
41
|
|
237
|
use YAML (); |
|
41
|
|
|
|
|
58
|
|
|
41
|
|
|
|
|
802
|
|
7
|
|
|
|
|
|
|
|
8
|
41
|
|
|
41
|
|
16061
|
use Module::Setup::Path::Config; |
|
41
|
|
|
|
|
88
|
|
|
41
|
|
|
|
|
1041
|
|
9
|
41
|
|
|
41
|
|
15529
|
use Module::Setup::Path::Plugins; |
|
41
|
|
|
|
|
91
|
|
|
41
|
|
|
|
|
1147
|
|
10
|
41
|
|
|
41
|
|
16017
|
use Module::Setup::Path::Template; |
|
41
|
|
|
|
|
80
|
|
|
41
|
|
|
|
|
1137
|
|
11
|
41
|
|
|
41
|
|
15875
|
use Module::Setup::Path::Additional; |
|
41
|
|
|
|
|
100
|
|
|
41
|
|
|
|
|
10700
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
111
|
|
|
111
|
0
|
272
|
my($class, @path) = @_; |
15
|
111
|
|
|
|
|
508
|
my $self = $class->SUPER::new(@path); |
16
|
|
|
|
|
|
|
|
17
|
111
|
|
|
|
|
459
|
$self->{config} = Module::Setup::Path::Config->new($self->path_to('config.yaml')); |
18
|
111
|
|
|
|
|
666
|
$self->{plugins} = Module::Setup::Path::Plugins->new($self->path_to('plugins')); |
19
|
111
|
|
|
|
|
822
|
$self->{template} = Module::Setup::Path::Template->new($self->path_to('template')); |
20
|
111
|
|
|
|
|
576
|
$self->{additional} = Module::Setup::Path::Additional->new($self->path_to('additional')); |
21
|
|
|
|
|
|
|
|
22
|
111
|
|
|
|
|
506
|
$self; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
98
|
|
|
98
|
0
|
486
|
sub config { shift->{config} } |
26
|
143
|
|
|
143
|
0
|
731
|
sub plugins { shift->{plugins} } |
27
|
919
|
|
|
919
|
0
|
2117
|
sub template { shift->{template} } |
28
|
222
|
|
|
222
|
0
|
961
|
sub additional { shift->{additional} } |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub create_flavor { |
31
|
0
|
|
|
0
|
0
|
|
my($self, $config) = @_; |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
$self->path->mkpath; |
34
|
0
|
|
|
|
|
|
$self->plugins->path->mkpath; |
35
|
0
|
|
|
|
|
|
$self->template->path->mkpath; |
36
|
0
|
|
|
|
|
|
$self->additional->path->mkpath; |
37
|
0
|
|
|
|
|
|
YAML::DumpFile($self->config->path, $config); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |