File: abstract_compiler.rb

package info (click to toggle)
puppet-agent 7.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,092 kB
  • sloc: ruby: 245,074; sh: 456; makefile: 38; xml: 33
file content (36 lines) | stat: -rw-r--r-- 1,177 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

module Puppet::Parser::AbstractCompiler

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

  # Returns the environment for the compilation
  #
  def environment
    raise Puppet::DevError("Class '#{self.class}' should have implemented 'environment'")
  end

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

  # Returns a hash of all externally referenceable qualified variables
  #
  def qualified_variables
    raise Puppet::DevError("Class '#{self.class}' should have implemented 'qualified_variables'")
  end

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

end