Open emilebosch opened 5 years ago
Aaaaaand here is the guard free patch 😗
task :yolo => :environment do
Thread::abort_on_exception = true
listener = Listen.to("test/") do |modified, added, removed|
begin
Spring::Client::run(["rails","test"])
rescue SystemExit
puts "Lol rly?"
end
end
listener.start
puts "Watching for test changes"
sleep
end
Maybe I am understanding it wrong. But isn't the spring command supposed to go trough the spring socket. Now it needs to escape to a shell, boot ruby, to finally pass trough the spring socket. Seems a bit unnecessary in terms of milliseconds or am I wrong?
Thanks a lot
The runner code:
And how the spring client talks to spring