def _test(self, *args, **kwargs): po = PackageOpration() ret = po.test(self.config) if not ret: Log.fatal(Status["STAT_TEST_ERROR"] % self.config.name) else: Log.success(Status["STAT_TEST_SUCCESS"] % self.config.name)
def publish(self): gc = GitClient(self.__config) ret = gc.publish() if ret: Log.success(Status["STAT_PUBLISH_SUCCESS"]) else: Log.fatal(Status["STAT_PUBLISH_FAILED"])
def _install(self, *args, **kwargs): if not kwargs.get("yes"): if not confirm("Is install %s ?" % self.config.name): return ret = PackageOpration().install(self.config) if not ret: Log.fatal(Status["STAT_INSTALL_ERROR"] % self.config.name) else: Log.success(Status["STAT_INSTALL_SUCCESS"] % self.config.name)