Skip to content

Commit

Permalink
Allow the stop command to be used like ctrl-c
Browse files Browse the repository at this point in the history
  • Loading branch information
greeneca committed Jun 24, 2016
1 parent 9cb6b31 commit 12f0e9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -296,7 +296,6 @@ directory:

## Improvements

* Don't require a device for non device tasks
* Account for missing folders or files
* Increase testing
* Config Unit Tests
Expand Down
7 changes: 5 additions & 2 deletions lib/roku_builder/monitor.rb
Expand Up @@ -43,11 +43,14 @@ def monitor(type:)
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
Expand Down
2 changes: 1 addition & 1 deletion lib/roku_builder/version.rb
Expand Up @@ -2,5 +2,5 @@

module RokuBuilder
# Version of the RokuBuilder Gem
VERSION = "3.7.1"
VERSION = "3.7.2"
end

0 comments on commit 12f0e9d

Please sign in to comment.