class DRbFileServer

Public Class Methods

new(host: 'localhost', port: '61010', path: '.') click to toggle source
# File lib/drb_fileserver.rb, line 101
def initialize(host: 'localhost', port: '61010', path: '.')

  @host, @port = host, port
  @file = FileX.new path

end

Public Instance Methods

start() click to toggle source
# File lib/drb_fileserver.rb, line 108
def start()

  DRb.start_service "druby://#{@host}:#{@port}", @file
  DRb.thread.join

end