Method: Spring::Application#run

Defined in:
lib/spring/application.rb

#runObject



118
119
120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/spring/application.rb', line 118

def run
  state :running
  manager.puts

  loop do
    IO.select [manager, @interrupt.first]

    if terminating? || watcher_stale? || preload_failed?
      exit
    else
      serve manager.recv_io(UNIXSocket)
    end
  end
end