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 #1

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
Actions #2

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 commit:59f9eb2a2c0c186011e56ef1efd80699b12e7756.

Actions #3

Updated by Jonathan CLARKE over 10 years ago

Applied in changeset commit:ba1cfe71273833f821cf4bb6c5c5afdf0d5c0297.

Actions #4

Updated by Benoît PECCATTE over 9 years ago

  • Tracker changed from Enhancement to User story
Actions #5

Updated by Benoît PECCATTE over 9 years ago

  • Target version set to 0.x
Actions #6

Updated by Vincent MEMBRÉ about 8 years ago

  • Status changed from Pending release to Released
Actions #7

Updated by Alexis Mousset over 2 years ago

  • Target version changed from 0.x to ncf-0.x
Actions #8

Updated by Alexis Mousset over 2 years ago

  • Category set to Generic methods
Actions

Also available in: Atom PDF