Re-evaluate the Guardfile before reload all Guards (Fixes #141).

This commit is contained in:
Michael Kessler 2011-09-24 12:58:27 +02:00
parent 0936771a9e
commit a1f37f60d6

View File

@ -37,6 +37,7 @@ module Guard
when 'stop', 'quit', 'exit', 's', 'q', 'e' when 'stop', 'quit', 'exit', 's', 'q', 'e'
::Guard.stop ::Guard.stop
when 'reload', 'r', 'z' when 'reload', 'r', 'z'
::Guard::Dsl.reevaluate_guardfile
::Guard.reload ::Guard.reload
when 'pause', 'p' when 'pause', 'p'
::Guard.pause ::Guard.pause