aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/templates/hook_extract.pl
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-11-19 00:24:22 +0000
committerMichael Scherer <misc@mageia.org>2010-11-19 00:24:22 +0000
commit090867e1a559885b11c914c977cfd2843c5ee746 (patch)
treebc9b9c58cc712acb3e54acb6ab2b1753d143705c /modules/subversion/templates/hook_extract.pl
parentf7254c82c2526397fd02e8df01508e9c8541a285 (diff)
downloadpuppet-090867e1a559885b11c914c977cfd2843c5ee746.tar
puppet-090867e1a559885b11c914c977cfd2843c5ee746.tar.gz
puppet-090867e1a559885b11c914c977cfd2843c5ee746.tar.bz2
puppet-090867e1a559885b11c914c977cfd2843c5ee746.tar.xz
puppet-090867e1a559885b11c914c977cfd2843c5ee746.zip
- add logic to extract directory from svn on commit
Diffstat (limited to 'modules/subversion/templates/hook_extract.pl')
-rw-r--r--modules/subversion/templates/hook_extract.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/subversion/templates/hook_extract.pl b/modules/subversion/templates/hook_extract.pl
new file mode 100644
index 00000000..7f4f0a29
--- /dev/null
+++ b/modules/subversion/templates/hook_extract.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl -MSVN::Notify::Config=$0
+--- #YAML:1.0
+<% extract_dir.each do |src,dest| %>
+
+'<%= src %>':
+ PATH: "/usr/bin:/usr/local/bin"
+ handler: Mirror
+ svn-binary: /usr/bin/svn
+ to: <%= dest %>
+<% end %>