Ignorefile
Compile a set of ignore statements from files and code.
Usage
reqire 'ignorefile'
cookbook_files = Dir.glob('**/{*,.*}')
ignore = IgnoreFile.new('.gitignore', 'chefignore', ['.git/*'])
ignore.apply!(cookbook_files)
Thanks
This gem is based upon Seth Vargo's buff-ignore.