File: puppet-syntax.rb

package info (click to toggle)
ruby-puppet-syntax 4.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: ruby: 672; makefile: 6
file content (35 lines) | stat: -rw-r--r-- 874 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
30
31
32
33
34
35
require 'puppet-syntax/version'

module PuppetSyntax
  autoload :Hiera, 'puppet-syntax/hiera'
  autoload :Manifests, 'puppet-syntax/manifests'
  autoload :Templates, 'puppet-syntax/templates'

  @exclude_paths = []
  @hieradata_paths = [
    '**/data/**/*.*{yaml,yml}',
    'hieradata/**/*.*{yaml,yml}',
    'hiera*.*{yaml,yml}',
  ]
  @manifests_paths = [
    '**/*.pp',
  ]
  @templates_paths = [
    '**/templates/**/*.erb',
    '**/templates/**/*.epp',
  ]
  @fail_on_deprecation_notices = true
  @check_hiera_keys = false
  @check_hiera_data = false

  class << self
    attr_accessor :exclude_paths,
                  :hieradata_paths,
                  :manifests_paths,
                  :templates_paths,
                  :fail_on_deprecation_notices,
                  :epp_only,
                  :check_hiera_keys,
                  :check_hiera_data
  end
end