# File lib/chef/cookbook/file_system_file_vendor.rb, line 41 def get_filename(filename) location = Array(Chef::Config.cookbook_path).inject(nil) do |memo, basepath| candidate_location = File.join(basepath, @cookbook_name, filename) memo = candidate_location if File.exist?(candidate_location) memo end raise "File #{filename} does not exist for cookbook #{@cookbook_name}" unless location location end