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

Provide "god reload" command to stop watchers that are no longer defined #70

Closed
wants to merge 2 commits into from

Conversation

eric
Copy link
Collaborator

@eric eric commented Nov 15, 2011

Provide a new command: god reload <file> <action> for reloading a file while cleaning up watchers that are no longer defined.

I have decided to propose this route instead of changing the behavior of god load (as I did in #45) to not be surprising until we have a chance to use this more.

To stop all watchers that are no longer defined:

$ god reload app.god stop

To just quit watching watchers that are no longer defined:

$ god reload app.god remove

@eric
Copy link
Collaborator Author

eric commented Nov 28, 2011

@mojombo, @tmm1: I would like to merge this if you guys don't have a problem with it. It doesn't change any existing code paths.

@mojombo
Copy link
Owner

mojombo commented Nov 29, 2011

I'd love to see a few tests for this first. Otherwise, I like it, but honestly I'd rather it replace load and have the same behavior as currently if you don't specify an optional 2nd param. Having two different reload mechanisms is confusing.

@eric
Copy link
Collaborator Author

eric commented Nov 30, 2011

I like your idea of making it an optional second parameter.

If you don't specify anything, it does the current behavior of load, if you provide stop or remove it does this new behavior. Great idea.

@eric
Copy link
Collaborator Author

eric commented Dec 11, 2011

I've updated #45 to support what @mojombo proposed.

@eric eric closed this Dec 11, 2011
hello-doodle added a commit to hello-doodle/god that referenced this pull request May 31, 2024
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

Successfully merging this pull request may close these issues.

3 participants