correct runner so you can run it in non-spork mode

This commit is contained in:
Sam 2013-10-24 13:34:38 +11:00
parent 3e2bd3ca93
commit b40d15f81d
1 changed files with 3 additions and 1 deletions

View File

@ -54,9 +54,11 @@ class Autospec::Runner
puts "Forced polling (slower) - inotify does not work on network filesystems, use local filesystem to avoid" if opts[:force_polling]
if ENV["SPORK"] == 0
if ENV["SPORK"] == "0"
puts "Using Simple Runner"
@runner = Autospec::SimpleRunner.new
else
puts "Using Spork Runner"
@runner = Autospec::SporkRunner.new
end
@runner.start