Sha256: 84f21706556b9fdce9455620123c173c6558fe054a0c80a2c6124f1e0bf2a6af
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
module CephStorage module StorageObject # This code is here to wrap around CephRuby::rados_object # Methods. It assigns one of the pool_factory cartridges # to the RadosObject module RadosWrapper def wrap_me(*method_names) method_names.each do |m| define_method(m) do |*args| log("#{m} wrapping with rados_pool") pool_factory.rados_pool do |p| p.ensure_open self.pool = p super(*args) end 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/storage_object/rados_wrapper.rb |
ceph_storage-0.1.0 | lib/ceph_storage/storage_object/rados_wrapper.rb |