diff options
Diffstat (limited to 'usr/src/libpiny/lib/Piny/Config.pm')
-rw-r--r-- | usr/src/libpiny/lib/Piny/Config.pm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/src/libpiny/lib/Piny/Config.pm b/usr/src/libpiny/lib/Piny/Config.pm index cfbe2c6..8894bad 100644 --- a/usr/src/libpiny/lib/Piny/Config.pm +++ b/usr/src/libpiny/lib/Piny/Config.pm @@ -127,6 +127,8 @@ sub tweakable { my $attrname = $attr; $attrname =~ s/_/./; + if ( $attrname =~ /_/ ) { croak "Illegal attribute name $attrname! (use only one underbar)"; }; + has $attr => ( is => 'rw' , isa => 'Str' @@ -167,11 +169,11 @@ sub tweakable { # The tweakables -tweakable "piny_ikiwiki_destdir" => "/srv/www/piny.be/"; -tweakable "piny_ikiwiki_srcdir" => "/srv/ikiwiki/"; -tweakable "piny_ikiwiki_url" => "http://piny.be/"; -tweakable "piny_ikiwiki_secure_url" => "https://secure.piny.be/"; -tweakable "piny_ikiwiki_secure_path" => "/srv/www/secure.piny.be/"; +tweakable "piny_ikiwikidestdir" => "/srv/www/piny.be/"; +tweakable "piny_ikiwikisrcdir" => "/srv/ikiwiki/"; +tweakable "piny_ikiwikiurl" => "http://piny.be/"; +tweakable "piny_ikiwikisecureurl" => "https://secure.piny.be/"; +tweakable "piny_ikiwikisecurepath" => "/srv/www/secure.piny.be/"; tweakable "receive_denyNonFastforwards" => "true"; # Moose boilerplate |