Skip to content

Instantly share code, notes, and snippets.

@pcomans
Created May 27, 2011 17:39
Show Gist options
  • Save pcomans/995751 to your computer and use it in GitHub Desktop.
Save pcomans/995751 to your computer and use it in GitHub Desktop.
if RUBY_PLATFORM =~ /java/
puts "JRUBY!"
command = "ruby -J-Xmx2g " + File.join(File.dirname(__FILE__), '..', 'lib/hello.rb')
system(command)
else
puts "MRI"
command = "ruby " + File.join(File.dirname(__FILE__), '..', 'lib/hello.rb')
system(command)
end
puts "Still there?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment