Module: Puppet::Parser::AbstractCompiler

Included in:
Compiler, ScriptCompiler
Defined in:
lib/puppet/parser/abstract_compiler.rb

Instance Method Summary collapse

Instance Method Details

#catalogObject

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

#environmentObject

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, options)
  raise Puppet::DevError("Class '#{self.class}' should have implemented 'newscope'")
end

#qualified_variablesObject

Returns a hash of all externally referenceable qualified variables


27
28
29
# File 'lib/puppet/parser/abstract_compiler.rb', line 27

def qualified_variables
  raise Puppet::DevError("Class '#{self.class}' should have implemented 'qualified_variables'")
end

#topscopeObject

Returns the top scope instance


32
33
34
# File 'lib/puppet/parser/abstract_compiler.rb', line 32

def topscope
  raise Puppet::DevError("Class '#{self.class}' should have implemented 'topscope'")
end