Project

desperados

0.01
No commit activity in last 3 years
No release in over 3 years
Ruby library for Ceph's Reliable Autonomic Distributed Object Store. Wraps the C++ librados library with Ruby love.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.0.0
 Project Readme

desperados: A Ruby library for Ceph’s Rados¶ ↑

Ceph is a distributed network storage and file system. It’s based on a reliable and scalable distributed object store calles RADOS. More about it here: ceph.newdream.net

Desperados is a Ruby wrapper for the C++ librados library, making interacting with a Ceph cluster in Ruby very easy.

Basic Example¶ ↑

require ‘rados’

Rados::initialize

pool = Rados::Pool.create("mypool")
pool.write("mykey", "somedata")
pool.read("mykey") == "somedata"

Object Orientated Example¶ ↑

require 'rados'
Rados::initialize

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"

Configuration¶ ↑

librados will read your ceph.conf config file to discover your cluster’s monitors, so that needs to be available (usually in ./ceph.conf or /etc/ceph/ceph.conf)

About¶ ↑

Author

John Leach (john@johnleach.co.uk)

Copyright

Copyright © 2010, 2011 John Leach

License

LGPL

Github

github.com/johnl/desperados/tree/master