Method: Inspec::Reporters::CLI#render

Defined in:
lib/inspec/reporters/cli.rb

#renderObject



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/inspec/reporters/cli.rb', line 45

def render
  run_data[:profiles].each do |profile|
    @control_count = 0
    output('')
    print_profile_header(profile)
    print_standard_control_results(profile)
    print_anonymous_control_results(profile)
    output(format_message(
             indentation: 5,
             message: 'No tests executed.',
    )) if @control_count == 0
  end

  output('')
  print_profile_summary
  print_tests_summary
end