From 575816c08d9b54b0512a16f71e6c1c71a89b7202 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 16 Jan 2011 13:15:31 +0000 Subject: - reuse the more elegant array for check_syntax --- modules/subversion/manifests/init.pp | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'modules/subversion/manifests') 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, - } - } + } } -- cgit v1.2.1