class RspecRunner::Monitor
Public Class Methods
start()
click to toggle source
# File lib/rspec_runner/monitor.rb, line 7 def start RspecRunner::Server.start at_exit { stop } watcher_thread = Watcher.start do |changes| puts 'Restarting...' RspecRunner::Server.restart end watcher_thread.join sleep 10_000 while true # :( end
Private Class Methods
stop()
click to toggle source
# File lib/rspec_runner/monitor.rb, line 23 def stop RspecRunner::Server.stop exit 0 end