# File lib/puppet/util/diff.rb, line 64 64: def string_file_diff(path, string) 65: require 'tempfile' 66: tempfile = Tempfile.new("puppet-diffing") 67: tempfile.open 68: tempfile.print string 69: tempfile.close 70: print diff(path, tempfile.path) 71: tempfile.delete 72: end