# File lib/chef/provider/file.rb, line 64 def set_content unless compare_content backup @new_resource.path if ::File.exists?(@new_resource.path) ::File.open(@new_resource.path, "w") {|f| f.write @new_resource.content } Chef::Log.info("#{@new_resource} contents updated") @new_resource.updated_by_last_action(true) end end