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
Updated by Vincent MEMBRÉ over 10 years ago
- Status changed from New to Pending technical review
- Pull Request set to https://github.com/Normation/ncf/pull/73
Updated by Vincent MEMBRÉ over 10 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset 59f9eb2a2c0c186011e56ef1efd80699b12e7756.
Updated by Jonathan CLARKE over 10 years ago
Applied in changeset ba1cfe71273833f821cf4bb6c5c5afdf0d5c0297.
Updated by Benoît PECCATTE over 9 years ago
- Tracker changed from Enhancement to User story
Updated by Vincent MEMBRÉ over 8 years ago
- Status changed from Pending release to Released
Updated by Alexis Mousset over 2 years ago
- Target version changed from 0.x to ncf-0.x
Actions