lib/head_chef/cookbook.rb in head_chef-0.1.0 vs lib/head_chef/cookbook.rb in head_chef-0.1.1
- old
+ new
@@ -79,10 +79,10 @@
digest.hexdigest
end
def remove_ignored_files(path)
file_list = Dir.chdir(path) do
- Dir['**/*'].select { |f| File.file?(f) }
+ Dir['**/{*,.*}'].select { |f| File.file?(f) }
end
ignore_file = File.join(path, 'chefignore')
ignore_globs = parse_ignore_file(ignore_file)