class LVM::PhysicalVolumes
Public Class Methods
new(options)
click to toggle source
# File lib/lvm/physical_volumes.rb, line 12 def initialize(options) @pvs = PVS.new(options) @pvsseg = PVSSEG.new(options) end
Public Instance Methods
each() { |pv| ... }
click to toggle source
Gather all information about physical volumes.
See VolumeGroups.each
for a better representation of LVM
data.
# File lib/lvm/physical_volumes.rb, line 20 def each pvs = @pvs.list pvsseg = @pvsseg.list pvs.each do |pv| pv.segments = pvsseg.select { |seg| seg.pv_uuid == pv.uuid } yield pv end end
list()
click to toggle source
# File lib/lvm/physical_volumes.rb, line 30 def list self.each {} end