line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::Setup::Path::Flavor; |
2
|
47
|
|
|
47
|
|
289
|
use strict; |
|
47
|
|
|
|
|
84
|
|
|
47
|
|
|
|
|
2142
|
|
3
|
47
|
|
|
47
|
|
257
|
use warnings; |
|
47
|
|
|
|
|
87
|
|
|
47
|
|
|
|
|
9806
|
|
4
|
47
|
|
|
47
|
|
264
|
use base 'Module::Setup::Path::Base'; |
|
47
|
|
|
|
|
89
|
|
|
47
|
|
|
|
|
30307
|
|
5
|
|
|
|
|
|
|
|
6
|
47
|
|
|
47
|
|
321
|
use YAML (); |
|
47
|
|
|
|
|
145
|
|
|
47
|
|
|
|
|
1023
|
|
7
|
|
|
|
|
|
|
|
8
|
47
|
|
|
47
|
|
34473
|
use Module::Setup::Path::Config; |
|
47
|
|
|
|
|
134
|
|
|
47
|
|
|
|
|
1239
|
|
9
|
47
|
|
|
47
|
|
32082
|
use Module::Setup::Path::Plugins; |
|
47
|
|
|
|
|
169
|
|
|
47
|
|
|
|
|
1414
|
|
10
|
47
|
|
|
47
|
|
30114
|
use Module::Setup::Path::Template; |
|
47
|
|
|
|
|
148
|
|
|
47
|
|
|
|
|
1273
|
|
11
|
47
|
|
|
47
|
|
43561
|
use Module::Setup::Path::Additional; |
|
47
|
|
|
|
|
122
|
|
|
47
|
|
|
|
|
14591
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
123
|
|
|
123
|
0
|
433
|
my($class, @path) = @_; |
15
|
123
|
|
|
|
|
875
|
my $self = $class->SUPER::new(@path); |
16
|
|
|
|
|
|
|
|
17
|
123
|
|
|
|
|
779
|
$self->{config} = Module::Setup::Path::Config->new($self->path_to('config.yaml')); |
18
|
123
|
|
|
|
|
1219
|
$self->{plugins} = Module::Setup::Path::Plugins->new($self->path_to('plugins')); |
19
|
123
|
|
|
|
|
807
|
$self->{template} = Module::Setup::Path::Template->new($self->path_to('template')); |
20
|
123
|
|
|
|
|
13472
|
$self->{additional} = Module::Setup::Path::Additional->new($self->path_to('additional')); |
21
|
|
|
|
|
|
|
|
22
|
123
|
|
|
|
|
1014
|
$self; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
110
|
|
|
110
|
0
|
1047
|
sub config { shift->{config} } |
26
|
161
|
|
|
161
|
0
|
1451
|
sub plugins { shift->{plugins} } |
27
|
1003
|
|
|
1003
|
0
|
3715
|
sub template { shift->{template} } |
28
|
240
|
|
|
240
|
0
|
1571
|
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; |