desperados: a Ruby library for RADOS
Hi all,
I've just made the first release of my RADOS Ruby library, desperados.
It's dead easy to use:
pool = Rados::Pool.create("mypool")
o = pool.objects.new("mykey")
o.write("Once upon")
o.write(" a time")
o.seek(0)
o.read == "Once upon a time"
o = pool.objects.find("mykey")
o.seek(5)
o.read == "upon a time"
I've been using it to read and write thousands of pool and millions of objects whilst load testing ceph and it's behaved well.
Behind the scenes it just uses librados (via the Ruby FFI).
The code is on github: https://github.com/johnl/desperados
Documentation here: http://rdoc.info/gems/desperados/0.1/frames
And there is a gem available: https://rubygems.org/gems/desperados
You can file bugs or feature requests on github too:
https://github.com/johnl/desperados/issues
Bug reports and contributions are welcomed!
Thanks,
John.
--
http://beta.brightbox.com/
Hi John,
Quoted 4 lines · John Leach
Hi all,
I've just made the first release of my RADOS Ruby library, desperados.
Sounds great! I'm no ruby user at all, but browsing through the sourcecode it seems very simple to attach external lib's to Ruby.
Quoted 2 lines
Bug reports and contributions are welcomed!
I found it a bit too much to create a patch for it, but browsing through your .spec file:
s.email = ["[email protected]"]
Isn't there a .co.uk too much?
Wido
Quoted 10 lines · Wido den Hollander
Hi John,
Quoted 4 lines · John Leach
Hi all,
I've just made the first release of my RADOS Ruby library, desperados.
Sounds great! I'm no ruby user at all, but browsing through the sourcecode it seems very simple to attach external lib's to Ruby.
thanks!
Quoted 9 lines
Quoted 2 lines
Bug reports and contributions are welcomed!
I found it a bit too much to create a patch for it, but browsing through your .spec file:
s.email = ["[email protected]"]
Isn't there a .co.uk too much?
doh, indeed. I'll fix that. Thanks!
John.