# File lib/chef/provider/cookbook_file.rb, line 87 def backup_new_resource if ::File.exists?(@new_resource.path) Chef::Log.info "Backing up current file at #{@new_resource.path}" backup @new_resource.path end end