From 21f5a41f88999eea69a3cfb3be3798967a7a4a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Wed, 8 Jun 2011 12:25:44 +0200 Subject: [PATCH] Actually clear the terminal before the setup (don't clear setup messages). --- lib/guard.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/guard.rb b/lib/guard.rb index 6b49650..86fc87e 100644 --- a/lib/guard.rb +++ b/lib/guard.rb @@ -22,6 +22,7 @@ module Guard end def start(options = {}) + UI.clear if options[:clear] setup(options) Interactor.init_signal_traps @@ -34,7 +35,6 @@ module Guard run { run_on_change_for_all_guards(files) } if Watcher.match_files?(guards, files) end - UI.clear if options[:clear] UI.info "Guard is now watching at '#{Dir.pwd}'" guards.each { |guard| supervised_task(guard, :start) } listener.start