From 947b8e5d312446b63a7dbd5be51a1bebf421cea8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 28 Feb 2010 19:19:23 -0800 Subject: unicorn_rails: small scoping cleanup --- bin/unicorn_rails | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/unicorn_rails b/bin/unicorn_rails index 5204145..a27e9df 100755 --- a/bin/unicorn_rails +++ b/bin/unicorn_rails @@ -4,7 +4,6 @@ require 'unicorn/launcher' require 'optparse' require 'fileutils' -cmd = File.basename($0) daemonize = false listeners = [] options = { :listeners => listeners } @@ -13,6 +12,7 @@ set_listener = false ENV['RAILS_ENV'] ||= "development" opts = OptionParser.new("", 24, ' ') do |opts| + cmd = File.basename($0) opts.banner = "Usage: #{cmd} " \ "[ruby options] [#{cmd} options] [rackup config file]" opts.separator "Ruby options:" -- cgit v1.2.3-24-ge0c7