class Hiera::Backend::Eyaml::Parser::EncStringTokenType
Public Class Methods
new()
click to toggle source
# File lib/hiera/backend/eyaml/parser/encrypted_tokens.rb, line 121 def initialize @regex = %r{ENC\[(\w+,)?([a-zA-Z0-9+/=]+?)\]} end
Public Instance Methods
create_token(string)
click to toggle source
# File lib/hiera/backend/eyaml/parser/encrypted_tokens.rb, line 125 def create_token(string) md = @regex.match(string) create_enc_token(string, :string, md[1], md[2]) end