diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-09 15:16:28 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-09 15:16:28 -0700 |
commit | 5b308775a8c46d71b126f623cef196540a44985a (patch) | |
tree | b34feee89ec53cb041b0a1e12449740aa392c7a0 /bin | |
parent | 1886fc49b2a4319f2d356c916f17d113cced582d (diff) | |
download | unicorn-5b308775a8c46d71b126f623cef196540a44985a.tar.gz |
This reverts commit e66ab79b8b5bc5311c750bf03868a7b2574f4ea1. Conflicts: bin/unicorn
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/unicorn | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/unicorn b/bin/unicorn index d421f18..60b7c84 100755 --- a/bin/unicorn +++ b/bin/unicorn @@ -107,8 +107,9 @@ abort "configuration file #{config} not found" unless File.exist?(config) inner_app = case config when /\.ru$/ raw = File.open(config, "rb") { |fp| fp.sysread(fp.stat.size) } + # parse embedded command-line options in config.ru comments if raw[/^#\\(.*)/] - warn %(not parsing embedded command-line options: "#$1") + opts.parse! $1.split(/\s+/) end lambda { || eval("Rack::Builder.new {(#{raw}\n)}.to_app", nil, config) } else |