diff options
-rwxr-xr-x | bin/zbatery | 2 | ||||
-rw-r--r-- | lib/zbatery.rb | 9 |
2 files changed, 1 insertions, 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 |