lib/gatherlogs/control_report.rb
# Format the output used for showing the control test results
Format the output used for showing the control test results
Format the output used for showing the control test results
def format_result_message(result)
      output = case result[:status]
               when 'skipped'
                 badge = SKIPPED_ICON
                 color = SKIPPED
                 result[:skip_message]
               when 'failed'
                 badge = FAILED_ICON
                 color = FAILED
                 truncate "#{result[:code_desc]}\n#{result[:message]}".chomp
               else
                 badge = PASSED_ICON
                 color = PASSED
                 result[:code_desc]
               end
      message = tabbed_text "#{badge} #{output}"
      colorize message.to_s, color
    end
def format_result_message ( result ) output = case result [ :status ] when 'skipped' badge = SKIPPED_ICON color = SKIPPED result [ :skip_message ] when 'failed' badge = FAILED_ICON color = FAILED truncate "#{result[:code_desc]}\n#{result[:message]}" . chomp else badge = PASSED_ICON color = PASSED result [ :code_desc ] end message = tabbed_text "#{badge} #{output}" colorize message . to_s , color end
Format the output used for showing the control test results
Format the output used for showing the control test results
result
<not_specific>