Method: Gopher.run

Defined in:
lib/gopher.rb

.runObject



290
291
292
293
294
295
296
297
298
299
300
301
# File 'lib/gopher.rb', line 290

def run
  return if EM.reactor_running?
  EM.run do
    EM.start_server(@app.host, @app.port, Gopher::Connection) do |c|
      c.app = @app
      reloadables.each do |f|
        load f if File.mtime(f) > @last_reload
      end
      @last_reload = Time.now
    end        
  end
end