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(