Module: Puppet::Parser::AbstractCompiler
- Included in:
- Compiler, ScriptCompiler
- Defined in:
- lib/puppet/parser/abstract_compiler.rb
Instance Method Summary collapse
-
#catalog ⇒ Object
Returns the catalog for a compilation.
-
#environment ⇒ Object
Returns the environment for the compilation.
-
#newscope(scope, options) ⇒ Object
Produces a new scope This method is here if there are functions/logic that will call this for some other purpose than to create a named scope for a class.
-
#qualified_variables ⇒ Object
Returns a hash of all externally referenceable qualified variables.
-
#topscope ⇒ Object
Returns the top scope instance.
Instance Method Details
#catalog ⇒ Object
Returns the catalog for a compilation. Must return a Puppet::Resource::Catalog or fail with an error if the specific compiler does not support catalog operations.
7 8 9 |
# File 'lib/puppet/parser/abstract_compiler.rb', line 7 def catalog raise Puppet::DevError("Class '#{self.class}' should have implemented 'catalog'") end |
#environment ⇒ Object
Returns the environment for the compilation
13 14 15 |
# File 'lib/puppet/parser/abstract_compiler.rb', line 13 def environment raise Puppet::DevError("Class '#{self.class}' should have implemented 'environment'") end |
#newscope(scope, options) ⇒ Object
Produces a new scope This method is here if there are functions/logic that will call this for some other purpose than to create a named scope for a class. It may not have to be here. (TODO)
21 22 23 |
# File 'lib/puppet/parser/abstract_compiler.rb', line 21 def newscope(scope, ) raise Puppet::DevError("Class '#{self.class}' should have implemented 'newscope'") end |