Source code for tic.development.tools.api
from tic.core import Interface
[docs]class IDirectoryWatcher(Interface):
'''
Interface for watching deleted files and stuff
'''
[docs] def changed(self, changed_files):
"""
changed_files: list of paths to changed files
"""
[docs] def created(self, created_files):
"""
created_files: list of paths to newly created files
"""
[docs] def deleted(self, deleted_files):
"""
deleted_files: list of paths to removed files
"""
[docs]class IRunServerTask(Interface):
"""Interface for running a task before the server starts
"""
[docs] def run(self):
"""Executes the task
"""
[docs]class IBuildTask(Interface):
"""Interface for running a build task
"""
[docs] def run(self, build_path):
"""What to do to execute the task"""