aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-01-16 13:15:31 +0000
committerMichael Scherer <misc@mageia.org>2011-01-16 13:15:31 +0000
commit575816c08d9b54b0512a16f71e6c1c71a89b7202 (patch)
treea831cd92a8a4a233df54c01f2edee6c580801fc1 /modules/subversion/manifests
parent9f4053255be9c27280b8c2fd8cbb9538702f9432 (diff)
downloadpuppet-575816c08d9b54b0512a16f71e6c1c71a89b7202.tar
puppet-575816c08d9b54b0512a16f71e6c1c71a89b7202.tar.gz
puppet-575816c08d9b54b0512a16f71e6c1c71a89b7202.tar.bz2
puppet-575816c08d9b54b0512a16f71e6c1c71a89b7202.tar.xz
puppet-575816c08d9b54b0512a16f71e6c1c71a89b7202.zip
- reuse the more elegant array for check_syntax
Diffstat (limited to 'modules/subversion/manifests')
-rw-r--r--modules/subversion/manifests/init.pp22
1 files changed, 5 insertions, 17 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp
index c9ff1e7d..3472099d 100644
--- a/modules/subversion/manifests/init.pp
+++ b/modules/subversion/manifests/init.pp
@@ -132,9 +132,7 @@ class subversion {
$cia_module = 'default',
$cia_ignore_author = '',
$no_binary = false,
- $syntax_check1 = '',
- $syntax_check2 = '',
- $syntax_check3 = '',
+ $syntax_check = '',
$extract_dir = '') {
# check permissions
# http://svnbook.red-bean.com/nightly/fr/svn.serverconfig.multimethod.html
@@ -222,21 +220,11 @@ class subversion {
pre_commit_link { "$name/hooks/pre-commit.d/no_root_commit":
scriptname => 'no_root_commit',
}
- if $syntax_check1 {
- pre_commit_link { "$name/hooks/pre-commit.d/${syntax_check1}":
- scriptname => $syntax_check1,
+ if $syntax_check {
+ pre_commit_link { "$name/hooks/pre-commit.d/$syntax_check":
+ scriptname => $syntax_check,
}
- }
- if $syntax_check2 {
- pre_commit_link { "$name/hooks/pre-commit.d/${syntax_check2}":
- scriptname => $syntax_check2,
- }
- }
- if $syntax_check3 {
- pre_commit_link { "$name/hooks/pre-commit.d/${syntax_check3}":
- scriptname => $syntax_check3,
- }
- }
+ }
}