arnold icon indicating copy to clipboard operation
arnold copied to clipboard

introduce modularity in our playbooks

Open lunika opened this issue 6 years ago • 2 comments

Purpose

In #175 we want to execute a task depending on a context and specific to an app. So we need to be able to execute tasks that are "application centric".

Proposal

Create a "hook" system. Tasks can live in the application folder and will be executed if they follow a pattern we choose. You should create a hooks folder and then in it files with the name of the hook you want to implement. For example for the hook vaults_created you should create this file for the forum application: apps/forum/hooks/vaults_created.yml

  • [x] create tasks to execute hooks
  • [x] example how to use them

lunika avatar Dec 13 '18 10:12 lunika

I like the idea, but I think we must talk a bit more of what must be achieved first. This implies dependencies between applications. IMO that should be implemented first.

jmaupetit avatar Dec 13 '18 14:12 jmaupetit

This PR is a POC and I'm open to discuss about what can be implemented

lunika avatar Dec 13 '18 14:12 lunika