Commit graph

20 commits

Author SHA1 Message Date
Jérôme Lebleu
b756f4d1eb [fix] Escape arguments and env values in hook_exec (bugfix #377) 2016-05-30 12:10:39 +02:00
Jérôme Lebleu
048ed3b0ea [fix] Raise proper MoulinetteError exception in hook_exec 2016-05-29 23:38:35 +02:00
Jérôme Lebleu
f09ab43eb8 [fix] Print string error of MoulinetteError in hook_callback 2016-05-21 21:21:20 +02:00
Jérôme Lebleu
c3fd005027 [enh] Allow to set env var for executed hooks in hooks_callback 2016-04-30 17:15:17 +02:00
Jérôme Lebleu
aae59b1d6e [enh] Small changes to env prepending in hook_exec 2016-04-28 21:03:22 +02:00
Julien Malik
c5d1ef981b [enh] Set env var for each app script and rename app variables 2016-04-28 21:03:17 +02:00
Julien Malik
7ce7d6fc15 [enh] Support passing env var to hook_exec 2016-04-28 20:43:22 +02:00
Jérôme Lebleu
3ed502894c [fix] Skip hidden and temp files in hook_list 2016-04-10 19:20:40 +02:00
Jérôme Lebleu
a26d921c0c [fix] Formatting 'args' in hook_callback is useless 2016-04-10 16:50:39 +02:00
Jérôme Lebleu
cf077a50aa [enh] Add pre/post script execution callbacks to hook_callback 2016-04-10 16:48:46 +02:00
Jérôme Lebleu
de08c14aa1 [enh] Allow to set script execution directory in hook_exec 2016-03-28 21:49:11 +02:00
opi
4cabb2f7f9 [enh] Use named arguments with m18n. 2016-03-27 15:56:41 +02:00
opi
7999293438 [enh] Display hook path on error message. 2016-03-27 11:26:41 +02:00
Jérôme Lebleu
94ce22f9d5 [enh] Pass app id to scripts and remove hook_check action
It passes the current app id to the app install/upgrade/remove scripts
as the last argument (wip #126).
The hook category has also been revisited to move some app specific parts
away from there. The action hook_check has been removed accordingly.
2015-12-27 22:56:04 +01:00
Jérôme Lebleu
4d439217f1 [fix] Log real exception string error in hook_callback 2015-11-15 18:33:02 +01:00
Jérôme Lebleu
eaef922d4e [enh] Make use of call_async_output in hook_exec to get output in real time 2015-11-15 15:22:34 +01:00
Jérôme Lebleu
3f42d12e95 [fix] Do not modify handlers with root_handlers in bin/yunohost 2015-11-15 14:58:35 +01:00
Jérôme Lebleu
e14674af88 [enh] Split stdout/stderr wrapping in hook_exec and add a no_trace option 2015-11-14 23:13:51 +01:00
Jérôme Lebleu
b7d0e977b9 [enh] Update hook.py to use logging instead of msignals.display 2015-11-14 18:21:36 +01:00
Jérôme Lebleu
908d77f234 [ref] Rename lib folder to src 2015-10-08 15:47:24 +02:00
Renamed from lib/yunohost/hook.py (Browse further)