Method: Puppet::Util::Diff.diff
- Defined in:
- lib/vendor/puppet/util/diff.rb
.diff(old, new) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vendor/puppet/util/diff.rb', line 8 def diff(old, new) return '' unless diff_cmd = Puppet[:diff] and diff_cmd != "" command = [diff_cmd] if args = Puppet[:diff_args] and args != "" command << args end command << old << new execute(command, :failonfail => false) end |