Beispiel #1
0
 def __git_env_call(self, cmd):
     return command.call(cmd, cwd=self.__local_path)
Beispiel #2
0
 def clone(self):
     if os.path.exists(self.__local_path) and not os.path.exists(PathConfig.yaml_path):
         shutil.rmtree(self.__local_path)
     if not os.path.exists(self.__local_path):
         return command.call('git clone -b %s %s %s' % (self.__branch, self.__remote, self.__local_path))
     return 0
Beispiel #3
0
 def _upload_app(self, app_path):
     return command.call(
         'xcrun altool --upload-app -f %s -t %s -apiKey %s -apiIssuer %s --output-format %s'
         % (app_path, self.type, self.api_key, self.api_issuer,
            self.output_format))
Beispiel #4
0
 def init(self):
     return command.call('git init %s' % self.__local_path)
Beispiel #5
0
 def _env_call(cmd):
     return command.call(cmd, cwd=PathConfig.root_path)