lib/datacenter/shell/local.rb in datacenter-0.4.2 vs lib/datacenter/shell/local.rb in datacenter-0.4.3
- old
+ new
@@ -26,10 +26,10 @@
chdir: options[:chdir] || Dir.pwd,
out: options[:out] || StringIO.new,
err: options[:err] || StringIO.new
}
- if RUBY_ENGINE == 'jruby'
+ if RUBY_ENGINE == 'jruby' && JRUBY_VERSION < '9.0.0.0'
run_system command, opts
else
run_open3 command, opts
end
end
\ No newline at end of file