Kwiki::Installer - Kwiki Installer Base Class


Kwiki documentation Contained in the Kwiki distribution.

Index


Code Index:

NAME

Top

Kwiki::Installer - Kwiki Installer Base Class

SYNOPSIS

Top

DESCRIPTION

Top

AUTHOR

Top

Brian Ingerson <INGY@cpan.org>

COPYRIGHT

Top


Kwiki documentation Contained in the Kwiki distribution.

package Kwiki::Installer;
use Spoon::Installer -Base;

sub set_file_content {
    # Can't use super here because of mixin squashes things down into one
    # namespace. May need to make mixins more flexible.
    my $content = Spoon::Installer::set_file_content($self, @_);
    my $path = shift;
    $content = $self->warn_config($content)
      if $self->file_is_config($path);
    return $content;
}

sub file_is_config {
    my $path = shift;
    $path =~ /config\/\w+\.yaml$/;
}

sub warn_config {
    <<END . shift;
# DO NOT EDIT THIS FILE
# Put overrides in the top level config.yaml
# See: http://www.kwiki.org/?ChangingConfigDotYaml
#
END
}

__DATA__