From e7d78ed289492bd9745d52826a40157cb6c848c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Tue, 7 Aug 2018 17:03:41 +0200 Subject: [PATCH] Add snapshot event handler --- solvable/src/event_handler_main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/solvable/src/event_handler_main.py b/solvable/src/event_handler_main.py index 4b0b564..b1702d3 100644 --- a/solvable/src/event_handler_main.py +++ b/solvable/src/event_handler_main.py @@ -10,7 +10,7 @@ from tfw.event_handler_base import EventHandlerBase, FSMAwareEventHandler from tfw.components import IdeEventHandler, TerminalEventHandler from tfw.components import ProcessManagingEventHandler, BashMonitor from tfw.components import TerminalCommands, LogMonitoringEventHandler -from tfw.components import FSMManagingEventHandler +from tfw.components import FSMManagingEventHandler, DirectorySnapshottingEventHandler from tfw.networking import MessageSender, TFWServerConnector from tfw.config import TFWENV from tfw.config.logs import logging @@ -133,6 +133,13 @@ def main(): process_name='webservice', log_tail=2000 ) + snapshot = DirectorySnapshottingEventHandler( # Manages filesystem snapshots of directories + key='snapshot', + directories=[ + TFWENV.IDE_WD, + TFWENV.WEBSERVICE_DIR + ] + ) # Your custom event handlers message_fsm_steps_eh = MessageFSMStepsEventHandler(