Module: PDK::Module

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

Defined Under Namespace

Classes: Convert, Metadata, Release, Update, UpdateManager

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.default_ignored_pathspec(ignore_dotfiles = true) ⇒ Object



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

def default_ignored_pathspec(ignore_dotfiles = true)
  require 'pathspec'

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