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

Unified Diff: modules/filtermaster/manifests/init.pp

Issue 29329031: Issue 3191 - Move filtermaster::repo_download to a distinct file (Closed)
Patch Set: Issue 3088 - Address feedback from codereview Created Oct. 12, 2015, 12:55 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 | « no previous file | modules/filtermaster/manifests/repo_download.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/filtermaster/manifests/init.pp
diff --git a/modules/filtermaster/manifests/init.pp b/modules/filtermaster/manifests/init.pp
index bbd9b7b08ed352f717f8fa73be8f786cfd6643f5..370ff9202f762d6a9b91a3341ee6e4fda29e79cd 100755
--- a/modules/filtermaster/manifests/init.pp
+++ b/modules/filtermaster/manifests/init.pp
@@ -89,21 +89,9 @@ class filtermaster(
package {['p7zip-full']:}
- define repo_download($alias = $title) {
-
- exec {"fetch_${title}":
- command => "hg clone https://hg.adblockplus.org/${title} /home/rsync/subscription/${title}",
- path => ["/usr/bin/", "/bin/"],
- require => Package['mercurial'],
- user => rsync,
- timeout => 0,
- onlyif => "test ! -d /home/rsync/subscription/${title}"
- }
- }
-
create_resources('filtermaster::repo_download', $repo_downloads)
- repo_download {$repos:
+ filtermaster::repo_download {$repos:
}
cron {'update_subscription':
« no previous file with comments | « no previous file | modules/filtermaster/manifests/repo_download.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld