class Package
Attributes
description[RW]
fileset[RW]
level[RW]
state[RW]
type[RW]
Public Class Methods
new(string)
click to toggle source
# File lib/AIX/package.rb, line 12 def initialize(string) parse(string) unless string.empty? end
Public Instance Methods
parse(string)
click to toggle source
# File lib/AIX/package.rb, line 18 def parse(string) # 'bos:bos.rte.security:5.3.1.1 : : :C:F:Base Security Function: : : : : : :0:1:/:1806' # ([\w\s]+):( ):( ):( ):( ):( ):( ):(\d):(\d):\/:(\d+)$ regexp_lslpp_qcL= /^([\w\.\-]+):([\w\.\_\-]+):([\w\.\-]+):(\s):(\s):(\w):([\w\s]):([\w\s\,\.\-\(\)\&\/\+\']+):/ if match = regexp_lslpp_qcL.match(string) @fileset = match[2] @level = match[3] @description = match[8] else raise Exception, "can't parse string >#{string}" end end