lib/wire/resource/ip_binary.rb
# given the array of output lines (+arr_lines+)from ip binary call,
# this method parses the lines and adds structured detail
# data to +result+ map
given the array of output lines (+arr_lines+)from ip binary call,
this method parses the lines and adds structured detail
data to +result+ map
given the array of output lines ( + arr_lines + ) from ip binary call this method parses the lines and adds structured detail data to + result + map
def parse_inet_lines(arr_lines, result)
        inet_map = {}
        arr_lines[1..-1].select { |line| line =~ /inet / }.each do |line|
          inet_result = get_ipaddr_data_inet(line)
          inet_map.store inet_result[:device], inet_result
        end
        result.store(:inet, inet_map)
      end
def parse_inet_lines ( arr_lines , result ) inet_map = { } arr_lines [ 1 .. - 1 ] . select { | line | line =~ / inet  / } . each do | line | inet_result = get_ipaddr_data_inet ( line ) inet_map . store inet_result [ :device ] , inet_result end result . store ( :inet , inet_map ) end
given the array of output lines (+arr_lines+)from ip binary call,
this method parses the lines and adds structured detail
data to +result+ map
given the array of output lines ( + arr_lines + ) from ip binary call this method parses the lines and adds structured detail data to + result + map
arr_lines
<not_specific>
result
<not_specific>