diff options
Diffstat (limited to 'modules/subversion/manifests')
-rw-r--r-- | modules/subversion/manifests/init.pp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp index f11ef087..187e8f98 100644 --- a/modules/subversion/manifests/init.pp +++ b/modules/subversion/manifests/init.pp @@ -59,9 +59,24 @@ class subversion { # - openldap , like named syntax_check{"check_perl": - regexp_ext => ".p[lm]$", + regexp_ext => "\.p[lm]$", check_cmd => "perl -c" } + + syntax_check{"check_puppet": + regexp_ext => "\.pp$", + check_cmd => "puppet --color=false --confdir=/tmp --vardir=/tmp --parseonly" + } + + syntax_check{"check_ruby": + regexp_ext => "\.rb$", + check_cmd => "ruby -c" + } + + syntax_check{"check_puppet_templates": + regexp_ext => "modules/.*/templates/.*$", + check_cmd => "erb -x -T - | ruby -c" + } } # TODO |