class Bootsnap::CLI

def precompile_json_files(load_paths, exclude: self.exclude)

def precompile_json_files(load_paths, exclude: self.exclude)
  return unless json
  load_paths.each do |path|
    if !exclude || !exclude.match?(path)
      list_files(path, "**/*.json").each do |json_file|
        # We ignore hidden files to not match the various .config.json files
        if !File.basename(json_file).start_with?(".") && (!exclude || !exclude.match?(json_file))
          @work_pool.push(:json, json_file)
        end
      end
    end
  end
end