| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Kwiki::Installer; |
|
2
|
1
|
|
|
1
|
|
4614
|
use Spoon::Installer -Base; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
sub set_file_content { |
|
5
|
|
|
|
|
|
|
# Can't use super here because of mixin squashes things down into one |
|
6
|
|
|
|
|
|
|
# namespace. May need to make mixins more flexible. |
|
7
|
|
|
|
|
|
|
my $content = Spoon::Installer::set_file_content($self, @_); |
|
8
|
|
|
|
|
|
|
my $path = shift; |
|
9
|
|
|
|
|
|
|
$content = $self->warn_config($content) |
|
10
|
|
|
|
|
|
|
if $self->file_is_config($path); |
|
11
|
|
|
|
|
|
|
return $content; |
|
12
|
|
|
|
|
|
|
} |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub file_is_config { |
|
15
|
|
|
|
|
|
|
my $path = shift; |
|
16
|
|
|
|
|
|
|
$path =~ /config\/\w+\.yaml$/; |
|
17
|
|
|
|
|
|
|
} |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub warn_config { |
|
20
|
|
|
|
|
|
|
<
|
|
21
|
|
|
|
|
|
|
# DO NOT EDIT THIS FILE |
|
22
|
|
|
|
|
|
|
# Put overrides in the top level config.yaml |
|
23
|
|
|
|
|
|
|
# See: http://www.kwiki.org/?ChangingConfigDotYaml |
|
24
|
|
|
|
|
|
|
# |
|
25
|
|
|
|
|
|
|
END |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__DATA__ |