class Hiera::Backend::Eyaml::Parser::EncStringTokenType

Public Class Methods

new() click to toggle source
# File lib/hiera/backend/eyaml/parser/encrypted_tokens.rb, line 95
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 98
def create_token(string)
  md = @regex.match(string)
  self.create_enc_token(string, :string, md[1], md[2])
end