Method: Spring::Application#run

Defined in:
lib/spring/application.rb

#runObject



154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'lib/spring/application.rb', line 154

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