johnbintz / guard-rails

No longer maintained. Latest version is at https://github.com/ranmocy/guard-rails
35 stars 53 forks source link

Reload instead of run_all #8

Closed tehpeh closed 13 years ago

tehpeh commented 13 years ago

Hi John,

This is what I meant regarding issue 6.

I've replaced run_all with reload so when a user hits return, nothing happens, but when they hit r+return the rails server restarts. This means you can use return to just run all tests, and r+return to restart rails, spork etc...

Any watched files will restart rails when touched, the same way it happens now.

What do you think? Does that work for you?

johnbintz commented 13 years ago

So I guess you're stacking your Rails runner and tests in one group/guard, then. I'll take a cue from guard-spork and support the same reload behavior, then. Consider your patch merged. :) Thanks for contributing!

tehpeh commented 13 years ago

Ok now I see. I was using different groups for a while, but now just run everything together. I run rails in daemon mode and tail the logs when I need to see what's going on.