(self, projects)
| 4660 | shutil.rmtree(self.__site_path, project['name']) |
| 4661 | |
| 4662 | def _multi_remove_tomcat_vhost(self, projects): |
| 4663 | if not self.__ENGINE: return |
| 4664 | domains = [project["name"] for project in projects if project["name"] != 'localhost'] |
| 4665 | try: |
| 4666 | Hosts = self.__ENGINE.getchildren() |
| 4667 | except: |
| 4668 | Hosts = list(self.__ENGINE) |
| 4669 | for host in Hosts: |
| 4670 | if host.tag != 'Host': continue |
| 4671 | if host.attrib['name'] in domains: |
| 4672 | self.__ENGINE.remove(host) |
| 4673 | self.save_tomcat() |
| 4674 | |
| 4675 | def _multi_remove_neizhi(self, projects): |
| 4676 | version_group = {} |
no test coverage detected