Closed mickey closed 10 years ago
I still prefer not add this hook.
Guard itself already support bunch of hooks:
start
, stop
, reload
, run_all
, run_on_changes
The doc is here.
And you can do what you expected by:
guard 'rails' do
watch('app.rb')
callback(:run_on_changes_end) { Guard.plugins.find {|p| p.class == LiveReload}.reactor.reload_browser(["whatever"]) }
end
This allows me to be able to livereload on backend changes:
I didn't include specs as I'm not sure how to test this. If you have any pointers it would be much appreciated.
Cheers,