clean up flowerbox when exiting, closing opened browsers

This commit is contained in:
John Bintz 2012-03-15 14:21:45 -04:00
parent d5fa3c6f10
commit fc68d77066

View File

@ -15,6 +15,12 @@ module Guard
UI.info "Guard::Flowerbox running in #{@options[:dir]}" UI.info "Guard::Flowerbox running in #{@options[:dir]}"
end end
def stop
UI.info "Stopping Guard::Flowerbox..."
::Flowerbox.cleanup!
end
def run_all def run_all
UI.info "Guard::Flowerbox running all files..." UI.info "Guard::Flowerbox running all files..."
::Flowerbox.run(@options[:dir], @options) ::Flowerbox.run(@options[:dir], @options)