Parent Directory | Revision Log | Patch
revision 1859 by misc, Mon May 23 10:26:00 2011 UTC | revision 1860 by misc, Tue Jul 19 23:19:39 2011 UTC | |
---|---|---|
# | Line 98 class git { | Line 98 class git { |
98 | } | } |
99 | } | } |
100 | ||
101 | define mirror($source, | |
102 | $refresh = '*/5') { | |
103 | ||
104 | exec { "/usr/bin/git clone $source $name": | |
105 | alias => "git mirror $name", | |
106 | creates => $name, | |
107 | } | |
108 | ||
109 | cron { "update $name": | |
110 | command => "/usr/bin/git pull $name" , | |
111 | minute => $refresh | |
112 | } | |
113 | } | |
114 | ||
115 | define svn_repository($source, | define svn_repository($source, |
116 | $std_layout = true, | $std_layout = true, |
117 | $refresh = '*/5') { | $refresh = '*/5') { |
|
ViewVC Help | |
Powered by ViewVC 1.1.30 |