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

Method clear_config

class/projectModel/pythonModel.py:2549–2561  ·  view source on GitHub ↗

@name 清除项目配置 @author hwliang<2021-08-09> @param project_name: string<项目名称> @return bool

(self, project_name)

Source from the content-addressed store, hash-verified

2547 return project_info
2548
2549 def clear_config(self, project_name):
2550 ''&#x27;
2551 @name 清除项目配置
2552 @author hwliang<2021-08-09>
2553 @param project_name: string<项目名称>
2554 @return bool
2555 ''&#x27;
2556 project_find = self.get_project_find(project_name)
2557 if not project_find: return False
2558 self.clear_nginx_config(project_find)
2559 self.clear_apache_config(project_find)
2560 public.serviceReload()
2561 return True
2562
2563 def set_config(self, project_name):
2564 ''&#x27;

Callers 2

RemoveProjectMethod · 0.95
unBindExtranetMethod · 0.95

Calls 3

get_project_findMethod · 0.95
clear_nginx_configMethod · 0.95
clear_apache_configMethod · 0.95

Tested by

no test coverage detected