What is the most awesome gem I should use to call Erlang functions from Ruby app? I wish to use rspec for testing some gen_server stuff.
Erlectricity looking solid, but there is no something like Node#rpc, just message passing. Any ideas?
What is the most awesome gem I should use to call Erlang functions from Ruby app? I wish to use rspec for testing some gen_server stuff.
Erlectricity looking solid, but there is no something like Node#rpc, just message passing. Any ideas?
Or do you mean "I have a running erl node that expose some functions from a module via tcp/ip or a stdin/stdout"
"send rpc calls to an erlang node from ruby program"
I think (someone prove me wrong) that you shouldn't use rspec for a gen_server at all. Instead you could, depening on what your gen_server actually does, use eunit. http://salientblue.com/codenotes/?name=erl_start and no, its a long way from rspec.
For rpc calls, rinterface might be the right option. From the README:
r = Erlang::Node.rpc("math","math_server","add",[10,20])
if r[0] == :badrpc
puts "Got and Error. Reason #{r[1]}"
else
puts "Success: #{r[1]}"
end