forked from voxpupuli/hiera-eyaml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheyaml.rb
More file actions
45 lines (36 loc) · 1003 Bytes
/
Copy patheyaml.rb
File metadata and controls
45 lines (36 loc) · 1003 Bytes
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
37
38
39
40
41
42
43
44
45
class Hiera
module Backend
module Eyaml
VERSION = '4.3.0'
DESCRIPTION = 'Hiera-eyaml is a backend for Hiera which provides OpenSSL encryption/decryption for Hiera properties'
class RecoverableError < StandardError
end
def self.subcommand=(command)
@@subcommand = command
end
def self.subcommand
@@subcommand
end
def self.default_encryption_scheme=(new_encryption)
@@default_encryption_scheme = new_encryption
end
def self.default_encryption_scheme
@@default_encryption_scheme ||= 'PKCS7'
@@default_encryption_scheme
end
def self.verbosity_level=(new_verbosity_level)
@@debug_level = new_verbosity_level
end
def self.verbosity_level
@@debug_level ||= 1
@@debug_level
end
def self.subcommands=(commands)
@@subcommands = commands
end
def self.subcommands
@@subcommands
end
end
end
end