namespace :luruju do namespace :server do desc "Start up LuRuJu Server" task :start do if am_i_jruby? require 'luruju/server/luruju_server' else IO.popen("jruby -S rake luruju:server:start", "r+") do |io| io.each_line { |line| puts line} end end end desc "Stop LuRuJu Server" task :stop do Luruju::LurujuClient.shutdown_server end end end