Exemplo n.º 1
0
 def compile(self, host, user, passwords, isGit, isVerbose):
     if isVerbose:
         _setting = settings(host_string = host)
     else:
         _setting = settings(hide('everything'), host_string = host) 
     with _setting:
         if isGit:
             if not DirCommands.isGitInit(self.remote) and len(self.gitAddr) > 0:
                 self.processGit()
             else:
                 raise DirError("Already init git mode in the remote path.")
         else:
             if not DirCommands.isUploadInit(self.remote):
                 self.processUpload()
             else:
                 raise DirError("Already init upload mode in the remote path.")