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

Method del_hosts

class/projectModel/javaModel.py:1521–1532  ·  view source on GitHub ↗

@name 删除本地hosts

(self, domain)

Source from the content-addressed store, hash-verified

1519 public.ExecShell('useradd springboot')
1520
1521 def del_hosts(self, domain):
1522 '''
1523 @name 删除本地hosts
1524 '''
1525 pass
1526 # ret = public.ReadFile('/etc/hosts')
1527 # if isinstance(ret, str):
1528 # import re
1529 # rec = '127.0.0.1 %s' % domain
1530 # if re.search(rec, ret):
1531 # ret=ret.replace(rec,'')
1532 # public.writeFile('/etc/hosts',ret)
1533
1534 def Initialization2(self, version, site):
1535 '''

Callers 3

project_remove_domainMethod · 0.95
remove_projectMethod · 0.95
multi_remove_projectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected