@name 删除本地hosts
(self, domain)
| 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 | ''' |
no outgoing calls
no test coverage detected