lib/chef/provider/remote_file.rb in chef-0.9.8 vs lib/chef/provider/remote_file.rb in chef-0.9.10.rc.0
- old
+ new
@@ -45,16 +45,16 @@
Chef::Log.debug "#{@new_resource}: Target and Source checksums are the same, taking no action"
else
backup_new_resource
Chef::Log.debug "copying remote file from origin #{raw_file.path} to destination #{@new_resource.path}"
FileUtils.cp raw_file.path, @new_resource.path
- @new_resource.updated = true
+ @new_resource.updated_by_last_action(true)
end
end
end
enforce_ownership_and_permissions
- @new_resource.updated
+ @new_resource.updated_by_last_action(true)
end
def action_create_if_missing
if ::File.exists?(@new_resource.path)
Chef::Log.debug("File #{@new_resource.path} exists, taking no action.")