lib/chef/provider/cron.rb in chef-0.10.0.beta.6 vs lib/chef/provider/cron.rb in chef-0.10.0.beta.7

- old
+ new

@@ -130,11 +130,11 @@ end status = popen4("crontab -u #{@new_resource.user} -", :waitlast => true) do |pid, stdin, stdout, stderr| crontab.each_line { |line| stdin.puts "#{line}" } end - Chef::Log.info("Updated cron '#{@new_resource.name}'") + Chef::Log.info("#{@new_resource} updated crontab entry") @new_resource.updated_by_last_action(true) else unless @cron_empty status = popen4("crontab -l -u #{@new_resource.user}") do |pid, stdin, stdout, stderr| stdout.each { |line| crontab << line } @@ -144,11 +144,11 @@ crontab << newcron status = popen4("crontab -u #{@new_resource.user} -", :waitlast => true) do |pid, stdin, stdout, stderr| crontab.each_line { |line| stdin.puts "#{line}" } end - Chef::Log.info("Added cron '#{@new_resource.name}'") + Chef::Log.info("#{@new_resource} added crontab entry") @new_resource.updated_by_last_action(true) end end def action_delete @@ -174,10 +174,10 @@ end status = popen4("crontab -u #{@new_resource.user} -", :waitlast => true) do |pid, stdin, stdout, stderr| crontab.each_line { |line| stdin.puts "#{line}" } end - Chef::Log.debug("Deleted cron '#{@new_resource.name}'") + Chef::Log.info("#{@new_resource} deleted crontab entry") @new_resource.updated_by_last_action(true) end end end