Class: Simp::Rake::Pupmod::PdkCompatBuilder

Inherits:
Puppet::Modulebuilder::Builder
  • Object
show all
Defined in:
lib/simp/rake/pupmod/module_build.rb

Overview

Extends Puppet::Modulebuilder::Builder to honour .pdkignore files. puppet-modulebuilder 2.x dropped native .pdkignore support; this restores it so the published tarball matches what PDK produced.

Instance Method Summary collapse

Instance Method Details

#ignored_filesObject



13
14
15
16
17
18
19
20
21
# File 'lib/simp/rake/pupmod/module_build.rb', line 13

def ignored_files
  spec = super
  pdkignore = File.join(source, '.pdkignore')
  return spec unless File.exist?(pdkignore)

  ignore = PathSpec.from_filename(pdkignore)
  ignore.add('.*') # Ignore dotfiles by default
  ignore
end