From 820501bf15b32ad6dbcebc73a45e3a2c3b613c63 Mon Sep 17 00:00:00 2001 From: mordaroso Date: Sun, 14 Aug 2011 18:41:05 +0200 Subject: [PATCH] remove guardfile_contents when re-evaluating so that the Guardfile gets reloaded correctly --- lib/guard/dsl.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/guard/dsl.rb b/lib/guard/dsl.rb index aa78735..abea392 100644 --- a/lib/guard/dsl.rb +++ b/lib/guard/dsl.rb @@ -14,6 +14,7 @@ module Guard def reevaluate_guardfile ::Guard.guards.clear + @@options.delete(:guardfile_contents) Dsl.evaluate_guardfile(@@options) msg = "Guardfile has been re-evaluated." UI.info(msg)