| Class | Puppet::Parser::AST::Node |
| In: |
lib/puppet/parser/ast/node.rb
|
| Parent: | Puppet::Parser::AST::HostClass |
The specific code associated with a host. Nodes are annoyingly unlike other objects. That‘s just the way it is, at least for now.
# File lib/puppet/parser/ast/node.rb, line 8
8: def initialize(options)
9: @parentclass = nil
10: super
11:
12: # Do some validation on the node name
13: if @name =~ /[^-\w.]/
14: raise Puppet::ParseError, "Invalid node name %s" % @name
15: end
16: end