Method: Spring::Server#shutdown

Defined in:
lib/spring/server.rb

#shutdownObject



100
101
102
103
104
105
106
107
108
109
110
# File 'lib/spring/server.rb', line 100

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| Spring.failsafe_thread { a.stop } }.map(&:join)
end