summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2010-07-07 10:30:15 -0700
committerNick Lewis <nick@puppetlabs.com>2010-07-07 11:51:54 -0700
commitcdd43825cee233af478d807cddda346e9d1fe142 (patch)
tree51f56c551f8364efa3053e404f04db568fa69943 /lib
parente419293e58addfd8e4f0612ad121f68038daa14a (diff)
downloadpuppet-cdd43825cee233af478d807cddda346e9d1fe142.tar.gz
puppet-cdd43825cee233af478d807cddda346e9d1fe142.tar.xz
puppet-cdd43825cee233af478d807cddda346e9d1fe142.zip
[#4114] Fix failures in the unit tests
The initial commit changed the name of a method (close -> close_all) and changed the way the array log destination worked before we saw that the unit tests were using it differently.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/util/log/destinations.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/puppet/util/log/destinations.rb b/lib/puppet/util/log/destinations.rb
index 403733d35..e748e5108 100644
--- a/lib/puppet/util/log/destinations.rb
+++ b/lib/puppet/util/log/destinations.rb
@@ -218,17 +218,12 @@ end
Puppet::Util::Log.newdesttype :array do
match "Array"
- attr_accessor :messages
- def initialize
- @messages = []
+ def initialize(messages)
+ @messages = messages
end
def handle(msg)
@messages << msg
end
-
- def close
- @messages.clear
- end
end