No commit activity in last 3 years
No release in over 3 years
A synchronous Ruby client for Doozer.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Fraggle::Block

A synchronous Ruby client for Doozer.

Install

$ gem install fraggle-block

Use

>> require 'rubygems'
>> require 'fraggle/block'
>> client = Fraggle::Block.connect
=> #<Fraggle::Block::Client:0x10217b260 @connection=#<Fraggle::Block::Connection:0x10217bbc0 @cn=#<TCPSocket:0x10217b3c8>, host"127.0.0.1", port8046
>> client.set('/foo', 'test', 0)
=> Fraggle::Block::Response tag: 0, flags: 3, rev: 482
>> foo = client.get('/foo')
=> Fraggle::Block::Response value: "test", tag: 0, flags: 3, rev: 482
>> foo = client.getdir('/')
=> [Fraggle::Block::Response path: "foo", tag: 0, flags: 1, Fraggle::Block::Response path: "ctl", tag: 0, flags: 1, Fraggle::Block::Response tag: 0, flags: 2]
>> foo = client.del('/foo', 482)
=> Fraggle::Block::Response tag: 0, flags: 3
>> client.disconnect
=> nil 

See examples for more.

Generate ProtoBuf code

BEEFCAKE_NAMESPACE=Fraggle::Block protoc --beefcake_out lib/fraggle/block/ -I . msg.proto