# File lib/rake.rb, line 1156 1156: def when_writing(msg=nil) 1157: if RakeFileUtils.nowrite_flag 1158: puts "DRYRUN: #{msg}" if msg 1159: else 1160: yield 1161: end 1162: end