Module: CephStorage::ClusterWrapper
- Included in:
- Cluster
- Defined in:
- lib/ceph_storage/cluster_wrapper.rb
Overview
This code is here to wrap around CephRuby::Cluster Methods. It assigns the rados cluster object around the called method
Instance Method Summary collapse
Instance Method Details
#wrap_me(*method_names) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/ceph_storage/cluster_wrapper.rb', line 6 def wrap_me(*method_names) method_names.each do |m| define_method(m) do |*args| rados_cluster do |c| c.send(m, *args) end end end end |