summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-11-01 14:47:53 -0500
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit9a78beee0e4dadeaaff0c7b6a5f659f147f108c8 (patch)
tree08a9bc41d4b2d705ad89447f0df8af231e21bbb3 /lib/puppet
parentf2ed655d5e5a9b7c61b29cda229b63db2d73064e (diff)
downloadpuppet-9a78beee0e4dadeaaff0c7b6a5f659f147f108c8.tar.gz
puppet-9a78beee0e4dadeaaff0c7b6a5f659f147f108c8.tar.xz
puppet-9a78beee0e4dadeaaff0c7b6a5f659f147f108c8.zip
Adding tests for the 'report' log destination
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/util/log.rb2
-rw-r--r--lib/puppet/util/log/destinations.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/util/log.rb b/lib/puppet/util/log.rb
index 997aa1810..50111ab0d 100644
--- a/lib/puppet/util/log.rb
+++ b/lib/puppet/util/log.rb
@@ -35,6 +35,8 @@ class Puppet::Util::Log
class << self
include Puppet::Util
include Puppet::Util::ClassGen
+
+ attr_reader :desttypes
end
# Reset all logs to basics. Basically just closes all files and undefs
diff --git a/lib/puppet/util/log/destinations.rb b/lib/puppet/util/log/destinations.rb
index 40e41c061..b11aa2b0c 100644
--- a/lib/puppet/util/log/destinations.rb
+++ b/lib/puppet/util/log/destinations.rb
@@ -200,6 +200,8 @@ end
# Log to a transaction report.
Puppet::Util::Log.newdesttype :report do
+ attr_reader :report
+
match "Puppet::Transaction::Report"
def initialize(report)