示例#1
0
 def clone(self, origin):
     """
 Clone an external repository in order to create this repository.
 """
     return subprocessExtras.call(
         [self.getGitExecutable(), "clone", origin,
          self.getPath()])
示例#2
0
def run(args, cwd=None):
    """
  Run docker with the given command line arguments. Return Docker's exit code.
  """
    return subprocessExtras.call([getAndVerifyExecutable()] + args, cwd)
示例#3
0
def run(args, cwd=None):
    """
  Run docker with the given command line arguments. Return Docker's exit code.
  """
    return subprocessExtras.call([getAndVerifyExecutable()] + args, cwd)
示例#4
0
def checkoutNoCommit(user, commit):
    subprocessExtras.call(["rm", "-rf", "*"],
                          cwd=user.getConfig()["registry-dir"])
    user.getRegistry().getGitRepository().run(["checkout", commit, "."])
    user.reloadRegistry()
示例#5
0
def checkoutNoCommit(user, commit):
    subprocessExtras.call(["rm", "-rf", "*"], cwd=user.getConfig()["registry-dir"])
    user.getRegistry().getGitRepository().run(["checkout", commit, "."])
    user.reloadRegistry()
示例#6
0
 def run(self, args):
     """
 Run git with the given command line arguments.
 """
     return subprocessExtras.call(["git"] + args, cwd=self.getPath())
示例#7
0
 def runShowOutput(self,args):
   subprocessExtras.call([self.getGitExecutable()]+args,cwd=self.getPath())
示例#8
0
 def clone(self,origin):
   """
   Clone an external repository in order to create this repository.
   """
   return subprocessExtras.call([self.getGitExecutable(), "clone", origin, self.getPath()])
示例#9
0
 def run(self,args):
   """
   Run git with the given command line arguments.
   """
   return subprocessExtras.call(["git"]+args,cwd=self.getPath())
示例#10
0
 def runShowOutput(self,args):
   subprocessExtras.call(["git"]+args,cwd=self.getPath())
示例#11
0
 def runShowOutput(self, args):
     subprocessExtras.call([self.getGitExecutable()] + args,
                           cwd=self.getPath())