Marcin Raczkowski
12/30/2007 3:32:00 PM
Marc Heiler wrote:
>> Please look at the documentation. There is a complete example that
>> explains this. The Pickaxe is also a good source of information.
>
> Well I have the pickaxe, several examples too and use drb optionally to
> trigger
> compiling and installing packages ... but for some reason, after some
> time of not using anything of that... i forget almost everything I read
> before about it.
>
> drb usage is either not easy enough IMHO, or underdocumented. What's
> also unfortunate is that ... are there other ways for "distributed" ruby
> like in a local LAN?
DRb documentation is mostly either bad, or for experts.
Basically DRb.start_service should be used for either starting client or
server - which is strange already.
now run DRbServer.new("strange://usrl", object) starts drb server.
and @object = SRbObject.new(nil, "strange://url") creates object in client
now each method call to @object is marshaled and sent to DRBServer,
where it's executed, and results is again marshaled and sent back.
have phun