move the spoon require into the jruby branch

This commit is contained in:
David Dollar
2012-01-22 17:30:02 -05:00
parent 550adc8070
commit c9042c5aae

View File

@@ -1,6 +1,5 @@
require "foreman"
require "rubygems"
require "spoon" if RUBY_PLATFORM == "java"
class Foreman::Process
@@ -35,7 +34,7 @@ private
reader, writer = IO.pipe
command = replace_command_env(command)
pid = if jruby?
Spoon.spawnp Foreman.runner, command
require "spoon"
Spoon.spawnp Foreman.runner, "-d", basedir, command
else
fork do