Method: Puppet::Util::Diff#string_file_diff
- Defined in:
- lib/puppet/util/diff.rb
#string_file_diff(path, string) ⇒ Object
72 73 74 75 76 77 78 79 |
# File 'lib/puppet/util/diff.rb', line 72 def string_file_diff(path, string) tempfile = Tempfile.new("puppet-diffing") tempfile.open tempfile.print string tempfile.close notice "\n" + diff(path, tempfile.path) tempfile.delete end |