module CephStorage
  # This code is here to wrap around CephRuby::Cluster
  # Methods. It assigns the rados cluster object around
  # the called method
  module ClusterWrapper
    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
  end
end