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