aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/sisu
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-02-01 09:48:30 -0500
committerRalph Amissah <ralph@amissah.com>2011-02-01 16:55:05 -0500
commit4b51bc00cda70d3c118401a74f1704df38c947a3 (patch)
tree8284fec609798d100b4663e42a842cb37cab985f /bin/sisu
parentprepare for v3 branch (diff)
v3 introduced as development branch, invoked using "sisu --v3 [instructions]
Diffstat (limited to 'bin/sisu')
-rw-r--r--bin/sisu13
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/sisu b/bin/sisu
index d977642f..54075d98 100644
--- a/bin/sisu
+++ b/bin/sisu
@@ -6,7 +6,18 @@ raise "Please, use Ruby1.8.4 or later, current Ruby #{RUBY_VERSION}" if RUBY_VER
$VERBOSE=nil
$KCODE='u' if RUBY_VERSION < '1.9'
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}/hub"
__END__