diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-10-11 22:14:56 -0700 |
---|---|---|
committer | jblake+piny@omgwallhack.org <jblake@omgwallhack.org> | 2010-10-11 22:14:56 -0700 |
commit | 668d2eac0b9882eb932ffc939e12e6fdf43c410a (patch) | |
tree | 89f223ef2ecececd476a2852351db4be0dda5e43 /usr/src/libpiny/lib/Piny/Config.pm | |
parent | 78969093592e17ea1c5a78b294d7d7a282b21ab2 (diff) | |
download | piny-code-668d2eac0b9882eb932ffc939e12e6fdf43c410a.tar.gz piny-code-668d2eac0b9882eb932ffc939e12e6fdf43c410a.zip |
Change tweakable names to make git happy.
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 |