aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/sisu_webrick
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-02-01 16:55:53 -0500
committerRalph Amissah <ralph@amissah.com>2011-02-01 16:55:53 -0500
commit704af1677c2904d0ccdff9fe75ed030ce6f060c8 (patch)
tree01298810b5b8b91031583e989fa774e4e000bfc7 /bin/sisu_webrick
parentdebian/changelog 2.7.9-1 (diff)
parentv3 introduced as development branch, invoked using "sisu --v3 [instructions] (diff)
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'bin/sisu_webrick')
-rw-r--r--bin/sisu_webrick13
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/sisu_webrick b/bin/sisu_webrick
index e0d6e5ca..cde38193 100644
--- a/bin/sisu_webrick
+++ b/bin/sisu_webrick
@@ -5,7 +5,18 @@ raise "Please, use Ruby1.8 (1.8.4 or later), current Ruby #{RUBY_VERSION}" if RU
#raise "Please, use Ruby1.8.4 or later, current Ruby #{RUBY_VERSION}" if RUBY_VERSION < '1.8.4'
$VERBOSE=nil
argv=$*
-SiSU_version_dir=(argv.inspect=~/--v1/) ? 'v1' : 'v2'
+SiSU_version_dir=case argv.inspect
+when /--v1/
+ 'v1'
+when /--v2/
+ 'v2'
+when /--v3/
+ 'v3'
+when /--dev/
+ 'v3'
+else
+ 'v2'
+end
SiSU_lib="sisu/#{SiSU_version_dir}"
require "#{SiSU_lib}/webrick"
__END__