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