| Class | Puppet::Parser::Compiler |
| In: |
lib/puppet/parser/compiler.rb
|
| Parent: | Object |
Maintain a graph of scopes, along with a bunch of data about the individual catalog we‘re compiling.
| catalog | [R] | |
| collections | [R] | |
| facts | [R] | |
| node | [R] | |
| node_scope | [R] | |
| relationships | [R] | |
| resources | [R] |
Compiler our catalog. This mostly revolves around finding and evaluating classes. This is the main entry into our catalog.
Evaluate each specified class in turn. If there are any classes we can‘t find, just tag the catalog and move on. This method really just creates resource objects that point back to the classes, and then the resources are themselves evaluated later in the process.
Create a new scope, with either a specified parent scope or using the top scope.
The top scope is usually the top-level scope, but if we‘re using AST nodes, then it is instead the node‘s scope.