Method: Chef::Provider::File#diff_current_from_content
- Defined in:
- lib/chef/provider/file.rb
permalink #diff_current_from_content(new_content) ⇒ Object
[View source]
50 51 52 53 54 55 56 57 58 |
# File 'lib/chef/provider/file.rb', line 50 def diff_current_from_content(new_content) result = nil Tempfile.open("chef-diff") do |file| file.write new_content file.close result = diff_current file.path end result end |