Class: Hiera::Backend::Eyaml::Parser::EncTokenType

Inherits:
TokenType
  • Object
show all
Defined in:
lib/hiera/backend/eyaml/parser/encrypted_tokens.rb

Instance Attribute Summary

Attributes inherited from TokenType

#regex

Instance Method Summary collapse

Methods inherited from TokenType

#create_token

Instance Method Details

#create_enc_token(match, type, enc_comma, cipher, indentation = '') ⇒ Object



103
104
105
106
# File 'lib/hiera/backend/eyaml/parser/encrypted_tokens.rb', line 103

def create_enc_token(match, type, enc_comma, cipher, indentation = '')
  encryption_scheme = enc_comma.nil? ? Eyaml.default_encryption_scheme : enc_comma.split(',').first
  EncToken.encrypted_value(type, encryption_scheme, cipher, match, indentation)
end