From a945985ad80cd8cccb2e73f8419a574ce6e9b49e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 27 Jun 2011 09:47:50 +0000 Subject: [PATCH] remove Zbatery.run method It's unnecessary making the stack deeper. Stop it. --- bin/zbatery | 2 +- lib/zbatery.rb | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/bin/zbatery b/bin/zbatery index 6d781b9..99ca46e 100755 --- a/bin/zbatery +++ b/bin/zbatery @@ -118,4 +118,4 @@ if $DEBUG end Unicorn::Launcher.daemonize!(options) if rackup_opts[:daemonize] -Zbatery.run(app, options) +Rainbows::HttpServer.new(app, options).start.join diff --git a/lib/zbatery.rb b/lib/zbatery.rb index 48cf63e..71cf69b 100644 --- a/lib/zbatery.rb +++ b/lib/zbatery.rb @@ -6,15 +6,6 @@ module Zbatery VERSION = "3.4.0" - class << self - - # runs the Zbatery HttpServer with +app+ and +options+ and does - # not return until the server has exited. - def run(app, options = {}) - Rainbows::HttpServer.new(app, options).start.join - end - end - Rainbows::Const::RACK_DEFAULTS["SERVER_SOFTWARE"] = "Zbatery #{VERSION}" # we don't actually fork workers, but allow using the -- 2.11.4.GIT