mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-12-05 02:21:31 +00:00
Create handler for deploying in the IDE
This commit is contained in:
parent
9404c86de7
commit
620f6aa643
@ -5,14 +5,13 @@ from tornado.ioloop import IOLoop
|
|||||||
|
|
||||||
from tfw.fsm import YamlFSM
|
from tfw.fsm import YamlFSM
|
||||||
from tfw.event_handlers import FSMAwareEventHandler, ControlEventHandler
|
from tfw.event_handlers import FSMAwareEventHandler, ControlEventHandler
|
||||||
from tfw.components.ide import IdeHandler
|
from tfw.components.ide import IdeHandler, DeployHandler
|
||||||
from tfw.components.terminal import TerminalHandler
|
from tfw.components.terminal import TerminalHandler
|
||||||
from tfw.components.frontend import FrontendProxyHandler, ConsoleLogsHandler, MessageQueueHandler
|
from tfw.components.frontend import FrontendProxyHandler, ConsoleLogsHandler, MessageQueueHandler
|
||||||
from tfw.components.process_management import ProcessHandler, ProcessLogHandler
|
from tfw.components.process_management import ProcessHandler, ProcessLogHandler
|
||||||
from tfw.components.fsm import FSMHandler
|
from tfw.components.fsm import FSMHandler
|
||||||
from tfw.main import EventHandlerFactory, setup_logger, setup_signal_handlers
|
from tfw.main import EventHandlerFactory, setup_logger, setup_signal_handlers
|
||||||
from tfw.config import TFWENV, TAOENV
|
from tfw.config import TFWENV, TAOENV
|
||||||
from tfw.internals.networking import Intent
|
|
||||||
|
|
||||||
from custom_handlers import CenatorHandler, TestCommandsHandler, messageFSMStepsHandler
|
from custom_handlers import CenatorHandler, TestCommandsHandler, messageFSMStepsHandler
|
||||||
|
|
||||||
@ -38,6 +37,7 @@ def main():
|
|||||||
ide_eh = eh_factory.build(IdeHandler(
|
ide_eh = eh_factory.build(IdeHandler(
|
||||||
patterns=['/home/user/workdir/*', '/srv/webservice/user_ops.py']
|
patterns=['/home/user/workdir/*', '/srv/webservice/user_ops.py']
|
||||||
), event_handler_type=ControlEventHandler)
|
), event_handler_type=ControlEventHandler)
|
||||||
|
deploy_eh = eh_factory.build(DeployHandler(), event_handler_type=ControlEventHandler)
|
||||||
# Web shell backend
|
# Web shell backend
|
||||||
terminal_eh = eh_factory.build(TerminalHandler(
|
terminal_eh = eh_factory.build(TerminalHandler(
|
||||||
port=TFWENV.TERMINADO_PORT,
|
port=TFWENV.TERMINADO_PORT,
|
||||||
|
Loading…
Reference in New Issue
Block a user