From 453f390beea2084209d93252552558aaf55f44bd Mon Sep 17 00:00:00 2001 From: Colin Surprenant Date: Thu, 25 Jul 2013 13:00:48 -0400 Subject: [PATCH] check for JRuby --- bin/redstorm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/redstorm b/bin/redstorm index 8848c1a..55982ed 100755 --- a/bin/redstorm +++ b/bin/redstorm @@ -1,6 +1,11 @@ #!/usr/bin/env ruby -require 'rubygems' +unless RUBY_PLATFORM =~ /java/ + puts("error: RedStorm requires JRuby. Check http://jruby.org/ or https://github.com/sstephenson/rbenv or https://rvm.io/") + exit(1) +end + +require 'rubygems' require 'rake' begin