summaryrefslogtreecommitdiff
path: root/libpiny/lib/Piny
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-05 14:38:07 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-05 14:38:07 -0700
commit81e0af879adf6781dc435a3e4692b42e2e14a367 (patch)
tree057e3aca3decfe6c420327cb56b5448c93928c67 /libpiny/lib/Piny
parent7d9e7b8c44c116ab4310231e7adfa7bd80543aa0 (diff)
downloadpiny-code-81e0af879adf6781dc435a3e4692b42e2e14a367.tar.gz
piny-code-81e0af879adf6781dc435a3e4692b42e2e14a367.zip
Add a tweakable for Joe.
Diffstat (limited to 'libpiny/lib/Piny')
-rw-r--r--libpiny/lib/Piny/Config.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpiny/lib/Piny/Config.pm b/libpiny/lib/Piny/Config.pm
index ef18541..c2e5abc 100644
--- a/libpiny/lib/Piny/Config.pm
+++ b/libpiny/lib/Piny/Config.pm
@@ -45,6 +45,12 @@ subtype 'HttpsUrl'
=> message { 'Not a https:// URL.' }
;
+subtype 'RepoPermission'
+ => as 'Str'
+ => where { $_ eq "666" or $_ eq "664" or $_ eq "660" or $_ eq "640" }
+ => message { 'Must be one of 666, 664, 660, or 640.' }
+ ;
+
# Attributes
has 'confpath' =>
@@ -217,6 +223,7 @@ tweakable "piny_ikiwikisrcdir" => "/srv/ikiwiki/", 'PathDir';
tweakable "piny_ikiwikiurl" => "http://piny.be/", 'HttpUrl';
tweakable "piny_ikiwikisecureurl" => "https://secure.piny.be/", 'HttpsUrl';
tweakable "piny_ikiwikisecurepath" => "/srv/www/secure.piny.be/", 'PathDir';
+tweakable "piny_permission" => '660', 'RepoPermission';
tweakable "receive_denynonfastforwards" => "true", 'GitBool';
# User-specific tweakables, in the users' ~/.gitconfig files.