Method: Spring::Server#shutdown

Defined in:
lib/spring/server.rb

#shutdownObject



94
95
96
97
98
99
100
101
102
103
104
# File 'lib/spring/server.rb', line 94

def shutdown
  log "shutting down"

  [env.socket_path, env.pidfile_path].each do |path|
    if path.exist?
      path.unlink rescue nil
    end
  end

  @applications.values.map { |a| Thread.new { a.stop } }.map(&:join)
end