aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/manifests/init.pp')
-rw-r--r--modules/git/manifests/init.pp28
1 files changed, 0 insertions, 28 deletions
diff --git a/modules/git/manifests/init.pp b/modules/git/manifests/init.pp
index 32d1060b..46760af3 100644
--- a/modules/git/manifests/init.pp
+++ b/modules/git/manifests/init.pp
@@ -35,32 +35,4 @@ class git {
}
}
- class client inherits common {
-
-
- }
-
- class svn inherits client {
- package { 'git-svn': }
- }
-
- define snapshot($source, $refresh ='*/5', $user = 'root') {
- include git::client
- #TODO
- # should handle branch -> clone -n + branch + checkout
- # create a script
- # Idealy, should be handled by vcsrepo https://github.com/bruce/puppet-vcsrepo
- # once it is merged in puppet
- exec { "/usr/bin/git clone $source $name":
- creates => $name,
- user => $user
- }
-
- cron { "update $name":
- # FIXME no -q ?
- command => "cd $name && /usr/bin/git pull",
- user => $user,
- minute => $refresh
- }
- }
}