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.



8
9
10
# File 'lib/puppet/parser/abstract_compiler.rb', line 8

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

#environmentObject

Returns the environment for the compilation



14
15
16
# File 'lib/puppet/parser/abstract_compiler.rb', line 14

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)



22
23
24
# File 'lib/puppet/parser/abstract_compiler.rb', line 22

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



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

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

#topscopeObject

Returns the top scope instance



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

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