about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-18 15:00:08 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-18 15:00:08 -0700
commit82167684e868e4e501713d2c03b096db6daab0a0 (patch)
tree183e97c5ecbdcb4ae81d2d55ad84927150e66670 /bin
parent1aa156429fd926162a112d327dc394cb9772c79c (diff)
downloadunicorn-82167684e868e4e501713d2c03b096db6daab0a0.tar.gz
Allow the --rainbows/-R command-line option to be passed to
activate Rainbows!!!1
Diffstat (limited to 'bin')
-rwxr-xr-xbin/unicorn2
-rwxr-xr-xbin/unicorn_rails2
2 files changed, 4 insertions, 0 deletions
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