Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hooks to run custom steps pre/post each action #91

Open
iversond opened this issue Sep 28, 2018 · 1 comment
Open

Add Hooks to run custom steps pre/post each action #91

iversond opened this issue Sep 28, 2018 · 1 comment

Comments

@iversond
Copy link
Contributor

Add a hook system into psadmin-plus so that users can extend psa with custom actions for their domains. For example, after a domain is started, you may want to start a monitoring script and then kill the script before the domain is stopped.

  • Add option for PRE/POST/REPLACE for each action
  • Support multiple hooks per action
  • Support for documenting steps in the .psa.conf or additional file:
---
app:
  start: 
    pre:
      - /path/to/script.sh
      - /path/to/script2.rb
@kbens
Copy link
Member

kbens commented Sep 28, 2018

Looks like YAML into Ruby Hashes is pretty easy.

https://www.sitepoint.com/choosing-right-serialization-format/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants