lib/osa/report/terminal_audit.rb
# parse the table's rows
#
# @param [Array <OSA::Servers::Server>]
#
# @return [Array]
#
parse the table's rows
parse the table ' s rows
def build_table_data(rule_result)
        rule_result.delete_if {|result| result.nil? or result.empty?}
        rule_result.map do |result|
          result[:public_addr] = result[:public_addr].join("\n")
          result[:dst_ports]   = result[:dst_ports].join("\n")
          result[:severity]    = colorize_severity(result[:severity])
          result.values
        end
      end
def build_table_data ( rule_result ) rule_result . delete_if { | result | result . nil? or result . empty? } rule_result . map do | result | result [ :public_addr ] = result [ :public_addr ] . join ( "\n" ) result [ :dst_ports ] = result [ :dst_ports ] . join ( "\n" ) result [ :severity ] = colorize_severity ( result [ :severity ] ) result . values end end
parse the table's rows
parse the table ' s rows
None
Array
rule_result
None