Parent Directory | Revision Log
include git::common
1 | define git::mirror( $source, |
2 | $description, |
3 | $refresh = '*/5') { |
4 | |
5 | include git::common |
6 | exec { "/usr/bin/git clone --bare $source $name": |
7 | alias => "git mirror $name", |
8 | creates => $name, |
9 | before => File["$name/description"], |
10 | } |
11 | |
12 | file { "$name/description": |
13 | content => $description, |
14 | } |
15 | |
16 | cron { "update $name": |
17 | command => "cd $name ; /usr/bin/git fetch -q", |
18 | minute => $refresh |
19 | } |
20 | } |
ViewVC Help | |
Powered by ViewVC 1.1.30 |