MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / _multi_remove_springboot

Method _multi_remove_springboot

class/projectModel/javaModel.py:4697–4709  ·  view source on GitHub ↗
(self, projects)

Source from the content-addressed store, hash-verified

4695 self.start_tomcat(get)
4696
4697 def _multi_remove_springboot(self, projects):
4698 get = public.dict_obj()
4699 for project in projects:
4700 # 停止项目
4701 get.project_name = project["name"]
4702 self.stop_project(get)
4703 # 删除项目
4704 pid_file = project['project_config']['pids']
4705 if os.path.exists(pid_file): os.remove(pid_file)
4706 script_file = project['project_config']['scripts']
4707 if os.path.exists(script_file): os.remove(script_file)
4708 log_file = project['project_config']['logs']
4709 if os.path.exists(log_file): os.remove(log_file)
4710
4711 def multi_set_project(self, get):
4712 '''

Callers 1

multi_remove_projectMethod · 0.95

Calls 3

stop_projectMethod · 0.95
existsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected