From 668d2eac0b9882eb932ffc939e12e6fdf43c410a Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Mon, 11 Oct 2010 22:14:56 -0700 Subject: Change tweakable names to make git happy. --- usr/src/libpiny/lib/Piny/Config.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'usr/src/libpiny/lib/Piny/Config.pm') 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 -- cgit v1.2.3