Sha256: 4f630cf3b405a1c1b7f2f7b9f6ee966e8b88e2a024c7defa531c4f7f71ed729f
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 Bytes
Contents
module CephStorage # This code is here to wrap around CephRuby::Pool # Methods. It assigns one of the pool_factory cartridges # to the method being calledt module PoolWrapper def wrap_me(*method_names) method_names.each do |m| define_method(m) do |*args| log("wrapping #{m}") rados_pool do |p| p.send(m, *args) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceph_storage-0.1.1 | lib/ceph_storage/pool_wrapper.rb |
ceph_storage-0.1.0 | lib/ceph_storage/pool_wrapper.rb |