File: configuration.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 (29 lines) | stat: -rw-r--r-- 902 bytes parent folder | download
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
# Configures the Puppet Plugins, by registering extension points
# and default implementations.
#
# See the respective configured services for more information.
#
# @api private
#
module Puppet::Plugins
  module Configuration
    require_relative '../../puppet/plugins/syntax_checkers'
    require_relative '../../puppet/syntax_checkers/base64'
    require_relative '../../puppet/syntax_checkers/json'
    require_relative '../../puppet/syntax_checkers/pp'
    require_relative '../../puppet/syntax_checkers/epp'

    def self.load_plugins
      # Register extensions
      # -------------------
      {
        SyntaxCheckers::SYNTAX_CHECKERS_KEY => {
          'json' => Puppet::SyntaxCheckers::Json.new,
          'base64' => Puppet::SyntaxCheckers::Base64.new,
          'pp' => Puppet::SyntaxCheckers::PP.new,
          'epp' => Puppet::SyntaxCheckers::EPP.new
        }
      }
    end
  end
end