Project

General

Profile

Actions

User story #5097

closed

User 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

Added by Vincent MEMBRÉ over 10 years ago. Updated over 2 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Generic methods
Target version:
UX impact:
Suggestion strength:
User visibility:
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

Also available in: Atom PDF