From 82167684e868e4e501713d2c03b096db6daab0a0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 18 Aug 2009 15:00:08 -0700 Subject: Actually hook up Rainbows to the rest of the beast Allow the --rainbows/-R command-line option to be passed to activate Rainbows!!!1 --- bin/unicorn | 2 ++ bin/unicorn_rails | 2 ++ 2 files changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/unicorn b/bin/unicorn index 8847e81..95c15ba 100755 --- a/bin/unicorn +++ b/bin/unicorn @@ -85,6 +85,8 @@ opts = OptionParser.new("", 24, ' ') do |opts| options[:config_file] = File.expand_path(f) end + opts.on("-R", "--rainbows") { options[:rainbows] = true } + # I'm avoiding Unicorn-specific config options on the command-line. # IMNSHO, config options on the command-line are redundant given # config files and make things unnecessarily complicated with multiple diff --git a/bin/unicorn_rails b/bin/unicorn_rails index 1fbc0e2..866833b 100755 --- a/bin/unicorn_rails +++ b/bin/unicorn_rails @@ -83,6 +83,8 @@ opts = OptionParser.new("", 24, ' ') do |opts| ENV['RAILS_RELATIVE_URL_ROOT'] = map_path = v end + opts.on("-R", "--rainbows") { options[:rainbows] = true } + # I'm avoiding Unicorn-specific config options on the command-line. # IMNSHO, config options on the command-line are redundant given # config files and make things unnecessarily complicated with multiple -- cgit v1.2.3-24-ge0c7