From fc68d77066c9c668d9d5a099c304a612c4ed1d3b Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 15 Mar 2012 14:21:45 -0400 Subject: [PATCH] clean up flowerbox when exiting, closing opened browsers --- lib/guard/flowerbox.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/guard/flowerbox.rb b/lib/guard/flowerbox.rb index 76bb104..148604d 100644 --- a/lib/guard/flowerbox.rb +++ b/lib/guard/flowerbox.rb @@ -15,6 +15,12 @@ module Guard UI.info "Guard::Flowerbox running in #{@options[:dir]}" end + def stop + UI.info "Stopping Guard::Flowerbox..." + + ::Flowerbox.cleanup! + end + def run_all UI.info "Guard::Flowerbox running all files..." ::Flowerbox.run(@options[:dir], @options)