Sha256: a693b9687a3bfc90c36a20ad25d736c1ec7d7ed5cca17a4c03277c1c6688d8a5
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
require 'drb' raise 'Use Jruby for LuRuJu Server!!' unless am_i_jruby? $SAFE = 1 module Luruju class LurujuServer def marshal(jude_file, options={}) puts "start loadding #{jude_file} #{options}" JudeApiLoader.marshal jude_file, options rescue p $! pp $!.backtrace return $! ensure puts "end loading" end def shutdown() puts "try shutdown." DRb.stop_service nil end end end url = "druby://127.0.0.1:#{Luruju.config.drb_port}" DRb.start_service(url, Luruju::LurujuServer.new) puts "start LuRuJu Server URL=#{url}" DRb.thread.join puts "shutdown LuRuJu Server ..."
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
luruju-0.2.0 | lib/luruju/server/luruju_server.rb |