Class: Kanrisuru::Core::Zypper::Parser::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/kanrisuru/core/zypper/parsers/base.rb

Class Method Summary collapse

Class Method Details

.extract_single_zypper_line(line) ⇒ Object



9
10
11
12
# File 'lib/kanrisuru/core/zypper/parsers/base.rb', line 9

def extract_single_zypper_line(line)
  values = line.split(': ', 2)
  values.length == 2 ? values[1] : ''
end