summaryrefslogtreecommitdiffstats
path: root/lib/puppet/node.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/node.rb')
-rw-r--r--lib/puppet/node.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/puppet/node.rb b/lib/puppet/node.rb
index 4b3a8e9c9..c0628ecdc 100644
--- a/lib/puppet/node.rb
+++ b/lib/puppet/node.rb
@@ -1,6 +1,6 @@
require 'puppet/indirector'
-# A simplistic class for managing the node information itself.
+# A class for managing nodes, including their facts and environment.
class Puppet::Node
require 'puppet/node/facts'
require 'puppet/node/environment'
@@ -10,7 +10,8 @@ class Puppet::Node
extend Puppet::Indirector
# Use the node source as the indirection terminus.
- indirects :node, :terminus_setting => :node_terminus
+ indirects :node, :terminus_setting => :node_terminus, :doc => "Where to find node information.
+ A node is composed of its name, its facts, and its environment."
# Retrieve a node from the node source, with some additional munging
# thrown in for kicks.
@@ -44,7 +45,7 @@ class Puppet::Node
private
- # Look up the node facts from our fact handler.
+ # Look up the node facts so we can generate the node names to use.
def self.node_facts(key)
if facts = Puppet::Node::Facts.find(key)
facts.values