Class: Inspec::Reporters::CLI
Defined Under Namespace
Classes: Control
Constant Summary collapse
- MULTI_TEST_CONTROL_SUMMARY_MAX_LEN =
60
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #output, #rendered_output
Methods included from Utils::RunDataFilters
#apply_report_resize_options, #apply_run_data_filters_to_hash, #filter_empty_profiles, #redact_sensitive_inputs, #sort_controls, #suppress_diff_output
Constructor Details
This class inherits a constructor from Inspec::Reporters::Base
Instance Method Details
#render ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/inspec/reporters/cli.rb', line 55 def render @src_extent_map = {} run_data[:profiles].each do |profile| if profile[:status] == "skipped" platform = run_data[:platform] output("Skipping profile: '#{profile[:name]}' on unsupported platform: '#{platform[:name]}/#{platform[:release]}'.") next end read_control_source(profile) @control_count = 0 output("") print_profile_header(profile) print_standard_control_results(profile) print_anonymous_control_results(profile) if @control_count == 0 output(( indentation: 5, message: "No tests executed." )) end end output("") if enhanced_outcomes print_control_outcomes_summary else print_profile_summary end print_tests_summary end |