Actually clear the terminal before the setup (don't clear setup messages).

This commit is contained in:
Rémy Coutable 2011-06-08 12:25:44 +02:00
parent c14460f86e
commit 21f5a41f88

View File

@ -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