class LVM::LogicalVolumes
Public Class Methods
new(options)
click to toggle source
# File lib/lvm/logical_volumes.rb, line 12 def initialize(options) @lvs = LVS.new(options) @lvsseg = LVSSEG.new(options) end
Public Instance Methods
each() { |lv| ... }
click to toggle source
Gather all information about logical volumes.
See VolumeGroups.each
for a better representation of LVM
data.
# File lib/lvm/logical_volumes.rb, line 20 def each lvs = @lvs.list lvsseg = @lvsseg.list lvs.each do |lv| lv.segments = lvsseg.select { |seg| seg.lv_uuid == lv.uuid } yield lv end end
list()
click to toggle source
# File lib/lvm/logical_volumes.rb, line 30 def list self.each {} end