Method: LVM::Wrapper::LVS#list

Defined in:
lib/lvm/wrapper/lvs.rb

#listObject



73
74
75
76
77
78
79
80
81
# File 'lib/lvm/wrapper/lvs.rb', line 73

def list
  output = External.cmd(@command)
  data = parse(output)
  if block_given?
    return data.each { |obj| yield obj }
  else
    return data
  end
end