lib/pdk/module.rb in pdk-1.8.0 vs lib/pdk/module.rb in pdk-1.9.0
- old
+ new
@@ -2,20 +2,21 @@
module PDK
module Module
DEFAULT_IGNORED = [
'/pkg/',
- '.*',
'~*',
'/coverage',
'/checksums.json',
'/REVISION',
'/spec/fixtures/modules/',
'/vendor/',
].freeze
- def default_ignored_pathspec
- @default_ignored_pathspec ||= PathSpec.new(DEFAULT_IGNORED)
+ def default_ignored_pathspec(ignore_dotfiles = true)
+ PathSpec.new(DEFAULT_IGNORED).tap do |ps|
+ ps.add('.*') if ignore_dotfiles
+ end
end
module_function :default_ignored_pathspec
end
end