Since JRuby 1.9 doesn't require posix/spawn, only follow that path if JRuby is loaded and running in 1.8 mode.

This commit is contained in:
Adam Hutchison committed 2012-11-27 22:07:50 -07:00
1 parent 8fe86e98c8
commit 7ad41da592
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -8,8 +8,8 @@ module Foreman
File.expand_path("../../bin/foreman-runner", __FILE__)
end
def self.jruby?
defined?(RUBY_PLATFORM) and RUBY_PLATFORM == "java"
def self.jruby_18?
defined?(RUBY_PLATFORM) and RUBY_PLATFORM == "java" and ruby_18?
end
def self.ruby_18?