From 2aa579bdbd91db2cd9a154e0ead2b327fa9a8474 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sun, 1 Nov 2009 14:58:03 -0500 Subject: Removing a redundant method in Report Signed-off-by: Luke Kanies --- lib/puppet/transaction/report.rb | 5 ----- lib/puppet/util/log/destinations.rb | 2 +- spec/unit/util/log/destinations.rb | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/puppet/transaction/report.rb b/lib/puppet/transaction/report.rb index 0fb1db03c..6d365a5f9 100644 --- a/lib/puppet/transaction/report.rb +++ b/lib/puppet/transaction/report.rb @@ -44,11 +44,6 @@ class Puppet::Transaction::Report @metrics[metric.name] = metric end - # Add a new log message. - def newlog(msg) - @logs << msg - end - # Provide a summary of this report. def summary ret = "" diff --git a/lib/puppet/util/log/destinations.rb b/lib/puppet/util/log/destinations.rb index b11aa2b0c..89f87dbec 100644 --- a/lib/puppet/util/log/destinations.rb +++ b/lib/puppet/util/log/destinations.rb @@ -209,7 +209,7 @@ Puppet::Util::Log.newdesttype :report do end def handle(msg) - @report.newlog(msg) + @report << msg end end diff --git a/spec/unit/util/log/destinations.rb b/spec/unit/util/log/destinations.rb index 0bc416e74..b43c75730 100755 --- a/spec/unit/util/log/destinations.rb +++ b/spec/unit/util/log/destinations.rb @@ -17,7 +17,7 @@ describe Puppet::Util::Log.desttypes[:report] do report = mock 'report' dest = @dest.new(report) - report.expects(:newlog).with("my log") + report.expects(:<<).with("my log") dest.handle "my log" end -- cgit