lib/roku_builder/monitor.rb in roku_builder-3.7.1 vs lib/roku_builder/monitor.rb in roku_builder-3.7.2
- old
+ new
@@ -41,14 +41,17 @@
end
}
running = true
while running
begin
- @logger.info "Q to exit"
+ @logger.unknown "Q to exit"
command = gets.chomp
- if command == "q"
+ case command
+ when "q"
thread.exit
running = false
+ when "stop"
+ thread[:connection].puts("\C-c")
else
thread[:connection].puts(command)
end
rescue SystemExit, Interrupt
thread[:connection].puts("\C-c")