Sha256: ad59ed9fe12af3faf9524afde23e823c51adf7dd27e10a7f1f3243dd838172d1

Contents?: true

Size: 419 Bytes

Versions: 1

Compression:

Stored size: 419 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
luruju-0.2.0 lib/tasks/server.rake