Method: PDK::Module::Build#ignore_file
- Defined in:
- lib/pdk/module/build.rb
#ignore_file ⇒ String
Select the most appropriate ignore file in the module directory.
In order of preference, we first try ‘.pdkignore`, then `.pmtignore` and finally `.gitignore`.
268 269 270 271 272 273 274 |
# File 'lib/pdk/module/build.rb', line 268 def ignore_file @ignore_file ||= [ File.join(module_dir, '.pdkignore'), File.join(module_dir, '.pmtignore'), File.join(module_dir, '.gitignore'), ].find { |file| File.file?(file) && File.readable?(file) } end |