New Ruby BERT-RPC Client

37 views
Skip to first unread message

Jared Kuolt (Lucky)

unread,
Mar 24, 2010, 5:49:01 PM3/24/10
to bert...@googlegroups.com
I created a new Ruby Gem called "bertclient" that is a simple,
threadsafe BERT-RPC client that has support for SSL and persistent
connections. I created a new project because it didn't feel right
adding these features to Mojombo's bertrpc gem. Please have a look:

http://github.com/luckythetourist/bertclient

Usage from the README:

require 'bertclient'
client = BERT::Client.new(:host => 'localhost',
:port => 9999,
:ssl => true,
:verify_ssl => false)

client.call(:calc, :add, 1, 2)

You can also use blocks to create ephemeral connections:

BERT::Client.new(opts) do |client|
client.call(:auth, :authenticate, user, password)
client.call(:calc, :add, 1, 2)
end # client disconnects when block exits


--
Jared "Lucky" Kuolt

Reply all
Reply to author
Forward
0 new messages