INNER CODE UNIT · Ruby

execute_file_or_piped_scan

stelligent/cfn_nag · lib/cfn-nag/cfn_nag_executor.rb:35

  def execute_file_or_piped_scan(cfn_nag, opts)
    aggregate_results = []

    until argf_finished?
      aggregate_results << scan_file(cfn_nag, opts[:fail_on_warnings])
      argf_close
    end

    cfn_nag.render_results(aggregate_results: aggregate_results,
                           output_format: opts[:output_format])

    @total_failure_count
  end

  def execute_aggregate_scan(cfn_nag, opts)
    cfn_nag.audit_aggregate_across_files_and_render_results(
      input_path: opts[:input_path],
      output_format: opts[:output_format],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…