lib/cfn-nag/cfn_nag.rb
def audit_aggregate_across_files_and_render_results(
    input_path:, output_format: 'txt', parameter_values_path: nil
  )
    aggregate_results = \
      audit_aggregate_across_files input_path: input_path,
                                   parameter_values_path: parameter_values_path

    render_results(aggregate_results: aggregate_results,
                   output_format: output_format)

    aggregate_results.inject(0) do |total_failure_count, results|
      total_failure_count + results[:file_results][:failure_count]
    end
  end
##
# Given a file or directory path, emit aggregate results to stdout
#
# Return an aggregate failure count (for exit code usage)
#
Given a file or directory path, emit aggregate results to stdout
Return an aggregate failure count (for exit code usage)
Given a file or directory path emit aggregate results to stdout Return an aggregate failure count ( for exit code usage )
def audit_aggregate_across_files_and_render_results(
    input_path:, output_format: 'txt', parameter_values_path: nil
  )
    aggregate_results = \
      audit_aggregate_across_files input_path: input_path,
                                   parameter_values_path: parameter_values_path
    render_results(aggregate_results: aggregate_results,
                   output_format: output_format)
    aggregate_results.inject(0) do |total_failure_count, results|
      total_failure_count + results[:file_results][:failure_count]
    end
  end
def audit_aggregate_across_files_and_render_results ( input_path : , output_format : 'txt' , parameter_values_path : nil ) aggregate_results = audit_aggregate_across_files input_path : input_path , parameter_values_path : parameter_values_path render_results ( aggregate_results : aggregate_results , output_format : output_format ) aggregate_results . inject ( 0 ) do | total_failure_count , results | total_failure_count + results [ :file_results ] [ :failure_count ] end end
Given a file or directory path, emit aggregate results to stdout
Return an aggregate failure count (for exit code usage)
Given a file or directory path emit aggregate results to stdout Return an aggregate failure count ( for exit code usage )
input_path
output_format
parameter_values_path