Add replicate command

In order to trigger a replication in jeepyb, we need a replicate command
in gerritlib.

Change-Id: Icaea639f9f7a17b1697b573788665bff638ac695
This commit is contained in:
Monty Taylor 2013-11-28 18:02:55 -05:00
parent 13d4204d98
commit ac865aa175
1 changed files with 5 additions and 0 deletions

View File

@ -141,6 +141,11 @@ class Gerrit(object):
out, err = self._ssh(cmd)
return out.split('\n')
def replicate(self, project='--all'):
cmd = 'gerrit replicate %s' % project
out, err = self._ssh(cmd)
return out.split('\n')
def review(self, project, change, message, action={}):
cmd = 'gerrit review %s --project %s' % (change, project)
if message: