Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/filtermaster/templates/hgrc.erb

Issue 29329135: Issue 3091 - Setup *.gz downloads for content blocker lists (Closed)
Patch Set: Created Oct. 14, 2015, 7:12 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/filtermaster/manifests/repo_download.pp ('k') | modules/filtermaster/templates/sshd_rsync.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/filtermaster/templates/hgrc.erb
diff --git a/modules/filtermaster/templates/hgrc.erb b/modules/filtermaster/templates/hgrc.erb
new file mode 100644
index 0000000000000000000000000000000000000000..2a7692b6e60a6fd6bf49d8497c94d24b136d56a5
--- /dev/null
+++ b/modules/filtermaster/templates/hgrc.erb
@@ -0,0 +1,11 @@
+[paths]
+default = <%= @repository %>
+
+[hooks]
+# Puppet: Filtermaster::Repo_download['<%= @title %>'].static_files
+<%- @static_files.each do |name| -%>
+<%- target = "/home/rsync/generated/gzip/#{name}.gz" -%>
+<%- id = scope.function_md5([name]) -%>
+post-update.<%= id %> = 7za a -tgzip -y -mx=9 -bd -mpass=5 "<%= target %>" "<%= name %>" >/dev/null
+<%- end -%>
+
« no previous file with comments | « modules/filtermaster/manifests/repo_download.pp ('k') | modules/filtermaster/templates/sshd_rsync.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld