diff options
| author | Luke Kanies <luke@madstop.com> | 2007-11-13 11:24:22 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-11-13 11:24:22 -0600 |
| commit | ffb4c2dbc7314b364d25e4f7be599ef05b767b44 (patch) | |
| tree | 819cdb29053d004cfab70a22ea95a576b1608df7 /lib/puppet/node | |
| parent | b65fb8316e10fb31c4ac9d0af75bb3e7f452d312 (diff) | |
| download | puppet-ffb4c2dbc7314b364d25e4f7be599ef05b767b44.tar.gz puppet-ffb4c2dbc7314b364d25e4f7be599ef05b767b44.tar.xz puppet-ffb4c2dbc7314b364d25e4f7be599ef05b767b44.zip | |
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.
Diffstat (limited to 'lib/puppet/node')
| -rw-r--r-- | lib/puppet/node/configuration.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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| |
