Method: PDK::Module::Build#ignored_path?

Defined in:
lib/pdk/module/build.rb

#ignored_path?(path) ⇒ Boolean

Check if the given path matches one of the patterns listed in the ignore file.

Parameters:

  • path (String)

    The path to be checked.

Returns:

  • (Boolean)

    true if the path matches and should be ignored.



142
143
144
145
146
# File 'lib/pdk/module/build.rb', line 142

def ignored_path?(path)
  path = path.to_s + '/' if File.directory?(path)

  !ignored_files.match_paths([path], module_dir).empty?
end