mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 21:11:32 +00:00
Remove ambigous API for log reading (actions always reply with logs included)
This commit is contained in:
parent
bfd1efa9f9
commit
6489e4452e
@ -15,9 +15,7 @@ class ProcessManager(SupervisorMixin):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.commands = {'start': self.start_process,
|
self.commands = {'start': self.start_process,
|
||||||
'stop': self.stop_process,
|
'stop': self.stop_process,
|
||||||
'restart': self.restart_process,
|
'restart': self.restart_process}
|
||||||
'readlog': self.read_log_stdout,
|
|
||||||
'readerrlog': self.read_log_stderr}
|
|
||||||
|
|
||||||
def __call__(self, command, process_name):
|
def __call__(self, command, process_name):
|
||||||
return self.commands[command](process_name)
|
return self.commands[command](process_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user