lib/ridley/chef/digester.rb in ridley-4.0.0 vs lib/ridley/chef/digester.rb in ridley-4.1.0

- old
+ new

@@ -38,10 +38,12 @@ end private def checksum_file(file, digest) - File.open(file, 'rb') { |f| checksum_io(f, digest) } + File.open(file, 'rb') do |f| + checksum_io(f, digest) + end end def checksum_io(io, digest) while chunk = io.read(1024 * 8) digest.update(chunk)