lib/cfn-nag/cfn_nag.rb
##
# Given a file or directory path, return aggregate results
#
Given a file or directory path, return aggregate results
Given a file or directory path return aggregate results
def audit_aggregate_across_files(input_path:, parameter_values_path: nil)
    parameter_values_string = \
      parameter_values_path.nil? ? nil : IO.read(parameter_values_path)
    templates = TemplateDiscovery.new.discover_templates(input_path)
    aggregate_results = []
    templates.each do |template|
      aggregate_results << {
        filename: template,
        file_results: audit(cloudformation_string: IO.read(template),
                            parameter_values_string: parameter_values_string)
      }
    end
    aggregate_results
  end
def audit_aggregate_across_files ( input_path : , parameter_values_path : nil ) parameter_values_string = parameter_values_path . nil? ? nil : IO . read ( parameter_values_path ) templates = TemplateDiscovery . new . discover_templates ( input_path ) aggregate_results = [ ] templates . each do | template | aggregate_results << { filename : template , file_results : audit ( cloudformation_string : IO . read ( template ) , parameter_values_string : parameter_values_string ) } end aggregate_results end
Given a file or directory path, return aggregate results
Given a file or directory path return aggregate results
input_path
parameter_values_path