lib/cfn-nag/template_discovery.rb
def discover_templates(input_json_path)
    if ::File.directory? input_json_path
      return find_templates_in_directory(directory: input_json_path)
    end
    return [render_path(input_json_path)] if ::File.file? input_json_path
    raise "#{input_json_path} is not a proper path"
  end
# input_json_path can be a directory, filename, or File
input_json_path can be a directory, filename, or File
input_json_path can be a directory filename or File
def discover_templates(input_json_path)
    if ::File.directory? input_json_path
      return find_templates_in_directory(directory: input_json_path)
    end
    return [render_path(input_json_path)] if ::File.file? input_json_path
    raise "#{input_json_path} is not a proper path"
  end
def discover_templates ( input_json_path ) if :: File . directory? input_json_path return find_templates_in_directory ( directory : input_json_path ) end return [ render_path ( input_json_path ) ] if :: File . file? input_json_path raise "#{input_json_path} is not a proper path" end
input_json_path can be a directory, filename, or File
input_json_path can be a directory filename or File
input_json_path