1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Execute the appropriate gem command when using JRuby [#2215 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
Zack Hobson 2009-03-11 17:53:21 -07:00 committed by Pratik Naik
parent 9d906707be
commit 5b751ae0b3

View file

@ -236,7 +236,14 @@ module Rails
private
def gem_command
RUBY_PLATFORM =~ /win32/ ? 'gem.bat' : 'gem'
case RUBY_PLATFORM
when /win32/
'gem.bat'
when /java/
'jruby -S gem'
else
'gem'
end
end
def install_command