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

Hook to run shell script when active mobster change #63

Open
jonwalstedt opened this issue Mar 1, 2019 · 1 comment
Open

Hook to run shell script when active mobster change #63

jonwalstedt opened this issue Mar 1, 2019 · 1 comment

Comments

@jonwalstedt
Copy link

Is there a way to run a custom shell script when the active mobster change?

@dillonkearns
Copy link
Owner

There isn't, but you could watch the active mobsters file for changes.

Here's an example script that uses the file with the list of active mobsters for the git authors:

https://github.com/dillonkearns/mobster/blob/master/mobster-commit.sh

For example, you could do this using a tool like fswatch. The active mobsters file is updated every time there is a rotation. If I'm remembering correctly, the name in the front of the list is the driver.

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

No branches or pull requests

2 participants