]> mj.ucw.cz Git - moe.git/commit
HOOKS->EXTENSIONS (with explanation), added dummy extension
authorTomas Gavenciak <gavento@ucw.cz>
Sat, 11 Sep 2010 15:45:12 +0000 (17:45 +0200)
committerTomas Gavenciak <gavento@ucw.cz>
Sat, 11 Sep 2010 15:53:31 +0000 (17:53 +0200)
commit8cbb26f1dd4ed67eaf4b1edb877723a78a3368af
treefbd8fa8bdb92ad8ad96ed2b8c4cf9cf139db4558
parent5336c317adedb7fcc26aedd8c16940f2750ea8b3
HOOKS->EXTENSIONS (with explanation), added dummy extension

Hooks had some problems - the hook modules have to insert self
into the pipeline, but cannot decide into which (only main) and
cannot see Eval during init() (or use the logs)

Having HOOKS with explicit timing:
HOOKS="m:8:my_main_pipeline_hook t:79:cleanup_in_test_pipeline"
would be a possibility, but a little too complex.

Extension is almost the same thing as hook (sugary name change),
but can do anything during init, can insert multiple hooks
(to both main and test pipelines), read/change configuration
and use logs.

Good extension example is fetching tasks via RSYNC or GIT.
t/moe/exts/__init__.py [new file with mode: 0644]
t/moe/exts/dummy.py [new file with mode: 0644]