# File lib/chef/cookbook/chefignore.rb, line 27 def initialize(ignore_file_or_repo) # Check the 'ignore_file_or_repo' path first and then look in the parent directory # to handle both the chef repo cookbook layout and a standalone cookbook @ignore_file = find_ignore_file(ignore_file_or_repo) @ignore_file = find_ignore_file(File.dirname(ignore_file_or_repo)) unless readable_file_or_symlink?(@ignore_file) @ignores = parse_ignore_file end
Generated with the Darkfish Rdoc Generator 2.