Method: Rubyipmi::Freeipmi::Lan#parse
- Defined in:
- lib/rubyipmi/freeipmi/commands/lan.rb
#parse(landata) ⇒ Object
def vlanid=(vlan)
end
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/rubyipmi/freeipmi/commands/lan.rb', line 87 def parse(landata) if ! landata.nil? and ! landata.empty? landata.lines.each do |line| # clean up the data from spaces next if line.match(/#+/) next if line.match(/Section/i) line.gsub!(/\t/, '') item = line.split(/\s+/) key = item.first.strip.downcase value = item.last.strip @info[key] = value end end return @info end |