0.0
Low commit activity in last 3 years
No release in over a year
Reads or writes files from a remote DRb server. Simple as DfsFile.read or DfsFile.write.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0, >= 2.0.2
~> 1.2, >= 1.2.1
~> 0.1, >= 0.1.5
 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