class Hiera::Backend::Eyaml::Parser::EncStringTokenType
Public Class Methods
new()
click to toggle source
# File lib/hiera/backend/eyaml/parser/encrypted_tokens.rb, line 124 def initialize @regex = /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 127 def create_token(string) md = @regex.match(string) self.create_enc_token(string, :string, md[1], md[2]) end