Skip to content

Commit

Permalink
tork: emit "tork:" prefix on messages sent to user
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaku committed Oct 26, 2014
1 parent a3be983 commit 87271e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/tork/cliapp.rb
Expand Up @@ -4,7 +4,7 @@ module Tork
class CLIApp < Server

def loop
tell @clients, 'Absorbing test execution overhead...', false
tell @clients, 'Absorbing test execution overhead...'
@driver = popen('tork-driver')
super
ensure
Expand All @@ -29,10 +29,10 @@ def recv client, message

case event_sym = event.to_sym
when :absorb
tell @clients, 'Overhead absorbed. Ready for testing!', false
tell @clients, 'Test execution overhead absorbed; ready to test!'

when :reabsorb
tell @clients, 'Reabsorbing changed overhead files...', false
tell @clients, 'Test execution overhead changed; re-absorbing...'

when :test, :pass, :fail
test_file, line_numbers, log_file, worker_number, exit_status = details
Expand Down Expand Up @@ -63,7 +63,7 @@ def recv client, message
if respond_to? cmd.first, true
__send__(*cmd)
else
tell @clients, "Sending #{cmd.inspect} command...", false
tell @clients, "Sending #{cmd.inspect} command..."
send @driver, cmd
end
end
Expand All @@ -84,7 +84,7 @@ def recv client, message
}

def help client
tell client, <<HELP, false
tell client, <<HELP
Type a then ENTER to run all test files.
Type t then SPACE then a filename then ENTER to run a specific test file.
Type s then ENTER to stop currently running test files.
Expand Down

0 comments on commit 87271e6

Please sign in to comment.