class Object
Public Instance Methods
run_in_thread(helpers, tests, thread_locals)
click to toggle source
# File lib/shindo/bin.rb, line 48 def run_in_thread(helpers, tests, thread_locals) shindo = Thread.new { for key, value in thread_locals Thread.current[key] = value end for file in helpers unless Thread.main[:exit] load(file) end end for file in tests Thread.current[:file] = file unless Thread.main[:exit] load(file) end end } shindo.join if shindo[:reload] run_in_thread(helpers, tests, thread_locals) else @totals = shindo[:totals] end end