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

QUESTION: is it possible to customize which folders Zeus monitors for file changes? #649

Closed
kigster opened this issue Nov 16, 2017 · 2 comments

Comments

@kigster
Copy link
Contributor

kigster commented Nov 16, 2017

We have many files in non-standard locations, and I would like to understand if it's possible to customize which folders each command should be watching?

Thanks in advance!

@myxoh
Copy link

myxoh commented Dec 20, 2017

+1 to this question.

@sideshowcoder
Copy link
Collaborator

Yes you can customize this as part of your custom_plan.rb file. Basically zeus will track all files which are loaded by mokeypatching load see https://github.com/burke/zeus/blob/master/rubygem/lib/zeus/load_tracking.rb so depending on which files are loaded by which command the those files will be watched. https://github.com/burke/zeus/blob/master/rubygem/lib/zeus/rails.rb would be the default rails setup which you would want to override given your file setup. For the way it works take a look at Zeus::LoadTracking.add_feature(file) Hope this helps.

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

3 participants