aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/subversion/manifests/init.pp12
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp
index 0bd6ba82..dd00586d 100644
--- a/modules/subversion/manifests/init.pp
+++ b/modules/subversion/manifests/init.pp
@@ -191,8 +191,7 @@ class subversion {
}
if $restricted_to_user {
- file { "$name/hooks/pre-commit.d/restricted_to_user":
- mode => 755,
+ subversion::hook::pre_commit("$name|restricted_to_user":
content => template("subversion/restricted_to_user"),
}
} else {
@@ -202,8 +201,7 @@ class subversion {
}
if $commit_mail {
- file { "$name/hooks/post-commit.d/send_mail":
- mode => 755,
+ subversion::hook::post_commit("$name|send_mail":
content => template("subversion/hook_sendmail.pl"),
require => [Package['perl-SVN-Notify-Config']],
}
@@ -214,8 +212,7 @@ class subversion {
}
if $cia_post {
- file { "$name/hooks/post-commit.d/cia.vc":
- mode => 755,
+ subversion::hook::post_commit("$name|cia.vc":
content => template("subversion/ciabot_svn.sh"),
}
@@ -234,8 +231,7 @@ class subversion {
}
if $extract_dir {
- file { "$name/hooks/post-commit.d/extract_dir":
- mode => 755,
+ subversion::hook::post_commit("$name|extract_dir":
content => template("subversion/hook_extract.pl"),
require => [Package['perl-SVN-Notify-Mirror']],
}