116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
# File 'lib/spring/client/run.rb', line 116
def verify_server_version
server_version = server.gets.chomp
if server_version != env.version
$stderr.puts "There is a version mismatch between the spring client " \
"(#{env.version}) and the server (#{server_version})."
if server_booted?
$stderr.puts "We already tried to reboot the server, but the mismatch is still present."
exit 1
else
$stderr.puts "Restarting to resolve."
stop_server
cold_run
end
end
end
|