Class: CephStorage::PoolFactory

Inherits:
CephRuby::Pool
  • Object
show all
Defined in:
lib/ceph_storage/pool_factory.rb

Overview

Creates a Pool Object Returns only a single pool object out of the cartridges available

Direct Known Subclasses

Pool

Class Method Summary collapse

Class Method Details

.build(cluster, name) {|p| ... } ⇒ Object

Yields:

  • (p)


6
7
8
9
10
# File 'lib/ceph_storage/pool_factory.rb', line 6

def build(cluster, name)
  p = CephStorage::Pool.new(cluster, name)
  yield(p) if block_given?
  p
end