Module: PDK::Module

Defined in:
lib/pdk/module.rb,
lib/pdk/module/build.rb,
lib/pdk/module/update.rb,
lib/pdk/module/convert.rb,
lib/pdk/module/metadata.rb,
lib/pdk/module/templatedir.rb,
lib/pdk/module/update_manager.rb

Defined Under Namespace

Classes: Build, Convert, Metadata, TemplateDir, Update, UpdateManager

Constant Summary collapse

DEFAULT_IGNORED =
[
  '/pkg/',
  '~*',
  '/coverage',
  '/checksums.json',
  '/REVISION',
  '/spec/fixtures/modules/',
  '/vendor/',
].freeze

Class Method Summary collapse

Class Method Details

.default_ignored_pathspec(ignore_dotfiles = true) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/pdk/module.rb', line 20

def default_ignored_pathspec(ignore_dotfiles = true)
  require 'pathspec'

  PathSpec.new(DEFAULT_IGNORED).tap do |ps|
    ps.add('.*') if ignore_dotfiles
  end
end