diff options
| author | Luke Kanies <luke@madstop.com> | 2009-11-01 14:58:03 -0500 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | 2aa579bdbd91db2cd9a154e0ead2b327fa9a8474 (patch) | |
| tree | 5023f02f76af357271d00c0a54a3fd02238abe49 | |
| parent | 5a8b460001337ac2971c9b8b9b61f600a86890bf (diff) | |
| download | puppet-2aa579bdbd91db2cd9a154e0ead2b327fa9a8474.tar.gz puppet-2aa579bdbd91db2cd9a154e0ead2b327fa9a8474.tar.xz puppet-2aa579bdbd91db2cd9a154e0ead2b327fa9a8474.zip | |
Removing a redundant method in Report
Signed-off-by: Luke Kanies <luke@madstop.com>
| -rw-r--r-- | lib/puppet/transaction/report.rb | 5 | ||||
| -rw-r--r-- | lib/puppet/util/log/destinations.rb | 2 | ||||
| -rwxr-xr-x | 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 |
