From ffb4c2dbc7314b364d25e4f7be599ef05b767b44 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 13 Nov 2007 11:24:22 -0600 Subject: This commit is the first run at removing all global references to resources. It deprecates the class-level [] and []= methods, used for so long to provide closure behaviour but now unnecessary with the node configuration's ability to function as a resource container. All of the spec tests pass, but there is much to do to make the test/ tests pass, I expect. --- lib/puppet/node/configuration.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/puppet/node') diff --git a/lib/puppet/node/configuration.rb b/lib/puppet/node/configuration.rb index 804f357d1..061e83f4b 100644 --- a/lib/puppet/node/configuration.rb +++ b/lib/puppet/node/configuration.rb @@ -370,6 +370,11 @@ class Puppet::Node::Configuration < Puppet::PGraph end end + # Return an array of the currently-defined resources. + def resources + @resource_table.keys + end + # Add a tag. def tag(*names) names.each do |name| -- cgit