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