def __git_env_call(self, cmd): return command.call(cmd, cwd=self.__local_path)
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
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))
def init(self): return command.call('git init %s' % self.__local_path)
def _env_call(cmd): return command.call(cmd, cwd=PathConfig.root_path)