(self, get: public.dict_obj)
| 544 | call_log("\n|- 需求包安装执行完毕....\n") |
| 545 | |
| 546 | def re_prep_env(self, get: public.dict_obj): |
| 547 | name = get.name.strip() |
| 548 | project_info = self.get_project_find(name) |
| 549 | if not project_info: |
| 550 | return public.returnMsg(False, "项目不存在") |
| 551 | project_conf = project_info['project_config'] |
| 552 | |
| 553 | prep_status = self.prep_status(project_conf) |
| 554 | if prep_status == "complete": |
| 555 | return public.returnMsg(False, "项目准备已完成,无需再次准备") |
| 556 | if prep_status == "running": |
| 557 | return public.returnMsg(False, "项目准备中,不能再次开启准备") |
| 558 | self.run_simple_prep_env(project_info["id"], project_conf) |
| 559 | time.sleep(0.5) |
| 560 | return public.returnMsg(True, "已重新进行准备,请等待准备完成。") |
| 561 | |
| 562 | @staticmethod |
| 563 | def exec_shell(sh_str: str, out: TextIO, timeout=None, user=None): |
nothing calls this directly
no test coverage detected