variables new_resource.conf_variables
end
- updated = updated || c.updated_by_last_action?
+ updated ||= c.updated_by_last_action?
end
new_resource.updated_by_last_action(updated)
action :delete
end
- updated = updated || c.updated_by_last_action?
+ updated ||= c.updated_by_last_action?
end
new_resource.updated_by_last_action(updated)
def target_path
case
- when ::File.exists?(target)
+ when ::File.exist?(target)
target
- when ::File.exists?("/usr/local/share/munin/plugins/#{target}")
+ when ::File.exist?("/usr/local/share/munin/plugins/#{target}")
"/usr/local/share/munin/plugins/#{target}"
- when ::File.exists?("/usr/share/munin/plugins/#{target}")
+ when ::File.exist?("/usr/share/munin/plugins/#{target}")
"/usr/share/munin/plugins/#{target}"
- else
- nil
end
end