class LVM::Wrapper::VGS
Constants
- ALLOCATION_POLICY
- ATTRIBUTES_FILE
- BASE_COMMAND
- CLUSTERED
- EXPORTED
- PARTIAL
- PERMISSIONS
vg_attr attribute handling constants roughly by order referenced in lib/report/report.c:360 (_vgstatus_disp)
- RESIZEABLE
Attributes
attributes[R]
command[R]
Public Class Methods
new(options)
click to toggle source
# File lib/lvm/wrapper/vgs.rb, line 12 def initialize(options) @attributes = Attributes.load(options[:version], ATTRIBUTES_FILE) @command = "#{options[:command]} #{Reporting.build_command(attributes, BASE_COMMAND)}" end
Public Instance Methods
list() { |obj| ... }
click to toggle source
# File lib/lvm/wrapper/vgs.rb, line 56 def list output = External.cmd(@command) data = parse(output) if block_given? return data.each { |obj| yield obj } else return data end end