From b065cab4fa5ca25302220c20563398a57069ae08 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 11 Jun 2011 00:34:42 +0000 Subject: remove Rainbows.run method We can get away with a single stack frame reduction. Unicorn itself has more stack reductions, but Rainbows! is further behind in this area. --- bin/rainbows | 2 +- lib/rainbows.rb | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/rainbows b/bin/rainbows index b3606ac..d56c5bb 100644 --- a/bin/rainbows +++ b/bin/rainbows @@ -118,4 +118,4 @@ if $DEBUG end Unicorn::Launcher.daemonize!(options) if rackup_opts[:daemonize] -Rainbows.run(app, options) +Rainbows::HttpServer.new(app, options).start.join diff --git a/lib/rainbows.rb b/lib/rainbows.rb index bd2c106..64d2d03 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -61,12 +61,6 @@ module Rainbows end # :stopdoc: - # runs the Rainbows! HttpServer with +app+ and +options+ and does - # not return until the server has exited. - def self.run(app, options = {}) # :nodoc: - HttpServer.new(app, options).start.join - end - class << self attr_accessor :server attr_accessor :cur # may not always be used -- cgit v1.2.3-24-ge0c7