Module: HatiConfig::Encryption
- Included in:
- Setting
- Defined in:
- lib/hati_config/encryption.rb
Overview
Encryption module provides methods for encrypting and decrypting sensitive configuration values.
Defined Under Namespace
Classes: AwsKmsKeyProvider, EncryptionConfig, EncryptionError, EnvKeyProvider, FileKeyProvider, KeyProvider
Instance Method Summary collapse
-
#encryption {|encryption_config| ... } ⇒ EncryptionConfig
Defines encryption configuration for a class or module.
-
#encryption_config ⇒ EncryptionConfig
Gets the encryption configuration.
Instance Method Details
#encryption {|encryption_config| ... } ⇒ EncryptionConfig
Defines encryption configuration for a class or module.
16 17 18 19 20 |
# File 'lib/hati_config/encryption.rb', line 16 def encryption(&block) @encryption_config ||= EncryptionConfig.new @encryption_config.instance_eval(&block) if block_given? @encryption_config end |
#encryption_config ⇒ EncryptionConfig
Gets the encryption configuration.
25 26 27 |
# File 'lib/hati_config/encryption.rb', line 25 def encryption_config @encryption_config ||= EncryptionConfig.new end |