0.0
Low commit activity in last 3 years
No release in over a year
A DRb server to read or write local files.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 1.2, >= 1.2.2
 Project Readme

Introducing the DRb_fileserver and DRb_fileclient gems

Running the server

To start the fileserver simply run the following:

require 'drb_fileserver'

DRbFileServer.new.start

Reading or writing a file

require 'drb_fileclient'

file = DRbFileClient.new

# reading a file
s = file.read 'mycoins.txt'

# writing a file
file.write 'hello.txt', 'hello world'

Note: To run the drb_fileserver on another machine you will need to specify the named keyword host address e.g. DRbFileServer.new(host: '192.168.4.135').start where 192.168.4.135 is the IP address of the machine running the fileserver code. Likewise the client would also need to specify the host address of the fileserver e.g. DRbFileClient.new(host: '192.168.4.135').

Resources

drb_fileserver fileserver fileclient drb drb_fileclient