[Mageia-sysadm] [318] - fix regexp escaping
root at mageia.org
root at mageia.org
Fri Nov 19 01:57:58 CET 2010
Revision: 318
Author: misc
Date: 2010-11-19 01:57:58 +0100 (Fri, 19 Nov 2010)
Log Message:
-----------
- fix regexp escaping
Modified Paths:
--------------
puppet/modules/subversion/manifests/init.pp
Modified: puppet/modules/subversion/manifests/init.pp
===================================================================
--- puppet/modules/subversion/manifests/init.pp 2010-11-19 00:55:03 UTC (rev 317)
+++ puppet/modules/subversion/manifests/init.pp 2010-11-19 00:57:58 UTC (rev 318)
@@ -59,9 +59,24 @@
# - 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101119/fb9d5c33/attachment-0001.html>
More information about the Mageia-sysadm
mailing list