refactorings, optimizations

This commit is contained in:
iperov 2019-03-21 11:58:54 +04:00
parent 97008291b8
commit d1676dea06
4 changed files with 171 additions and 130 deletions

View file

@ -4,6 +4,7 @@ import time
import sys
from interact import interact as io
class Subprocessor(object):
class SilenceException(Exception):
@ -134,7 +135,14 @@ class Subprocessor(object):
#tick in main loop
pass
#overridable
def on_check_run(self):
return True
def run(self):
if not self.on_check_run():
return self.get_result()
self.clis = []
#getting info about name of subprocesses, host and client dicts, and spawning them