Actions
User story #5097
closedUser story #5095: Add hooks to ncf-builder directory so you can have pre/post actions when editing with ncf API
Implement logic to handle hooks in ncf-api
Status:
Released
Priority:
1 (highest)
Assignee:
Category:
Generic methods
Target version:
Effort required:
Name check:
Fix check:
Regression:
Description
ncf-api should look for hooks in ncf-hooks.d in every ncf direcoty it interfere with.
it should
- look to pre actions (format of files: pre.name.(py,sh,...)
- order them and sort them by name
- run them by order
- do the action
- before any actions, it should look to post actions (format of files: post.name.(py,sh,...)
- order them and sort them by name
- run them by order
It should ignore files with prefix .ex/.example/.disable/.disabled/.rpmnew/.rpmsave
Actions