Method: Bolt::Config#check_path_case

Defined in:
lib/bolt/config.rb

#check_path_case(type, paths) ⇒ Object

Check if there is a case-insensitive match to the path



471
472
473
474
475
476
477
478
479
480
# File 'lib/bolt/config.rb', line 471

def check_path_case(type, paths)
  return if paths.nil?
  matches = matching_paths(paths)

  if matches.any?
    msg = "WARNING: Bolt is case sensitive when specifying a #{type}. Did you mean:\n"
    matches.each { |path| msg += "         #{path}\n" }
    Bolt::Logger.warn("path_case", msg)
  end
end