Comment 6 for bug 1672436

Revision history for this message
Ɓukasz Zemczak (sil2100) wrote :

Right now what I have working is a really simple hook mechanism of running scripts in selected defined moments from selected directories (by user + default locations). One hook can have more than one script fired as we'll be running all scripts in hook-name.d if existing. During hook definition additional environment variables can be provided (like, rootfs directory etc.). I'm also writing tests that would make sure no previously defined hooks are easily removed, since we want to make sure they're part of the official API.

My only problem so far is that my code looks somehow ugly, ygh.