| 1 | package Kwiki::Installer; | ||||||||||
| 2 | 7 | ▶ | use Spoon::Installer -Base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 7 | ▶ | |||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 0 | ▶ | sub set_file_content { | ||||||||
|
Subroutine
set_file_content: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 5 | # Can't use super here because of mixin squashes things down into one | ||||||||||
| 6 | # namespace. May need to make mixins more flexible. | ||||||||||
| 7 | 0 | my $content = Spoon::Installer::set_file_content($self, @_); | |||||||||
| 8 | 0 | my $path = shift; | |||||||||
| 9 | 0 | ▶ | $content = $self->warn_config($content) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | if $self->file_is_config($path); | ||||||||||
| 11 | 0 | return $content; | |||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | sub file_is_config { | ||||||||
|
Subroutine
file_is_config: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 15 | 0 | my $path = shift; | |||||||||
| 16 | 0 | $path =~ /config\/\w+\.yaml$/; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | sub warn_config { | ||||||||
|
Subroutine
warn_config: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 20 | 0 | <<END . shift; | |||||||||
| 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 | 7 | __DATA__ | |||||||||