Sha256: 751a4084c477fe1ec1727de10bd6ab273a5f99ff98c50c6b7aaa5d98180e6343

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

require 'drb'

DRb.start_service

module Luruju
  
  class LurujuClient
    
    def initialize() init end
    def marshal(jude_file, options={}) @drb_object.marshal jude_file, options end
    def shutdown_server() @drb_object.shutdown end
    def self.shutdown_server() new.shutdown_server end
    protected
    def init
      @drb_object = DRbObject.new_with_uri "druby://127.0.0.1:#{Luruju.config.drb_port}"
    end    
    
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
luruju-0.2.0 lib/luruju/luruju_client.rb