psadmin-io / psadmin-plus

A psadmin helper script
MIT License
17 stars 4 forks source link

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

Open iversond opened 6 years ago

iversond commented 6 years ago

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.

---
app:
  start: 
    pre:
      - /path/to/script.sh
      - /path/to/script2.rb
kbens commented 6 years ago

Looks like YAML into Ruby Hashes is pretty easy.

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