class Hiera::Backend::Eyaml::Parser::EncBlockTokenType
Public Class Methods
new()
click to toggle source
# File lib/hiera/backend/eyaml/parser/encrypted_tokens.rb, line 134 def initialize @regex = />\n(\s*)ENC\[(\w+,)?([a-zA-Z0-9\+\/=\s]+?)\]/ end
Public Instance Methods
create_token(string)
click to toggle source
# File lib/hiera/backend/eyaml/parser/encrypted_tokens.rb, line 137 def create_token(string) md = @regex.match(string) self.create_enc_token(string, :block, md[2], md[3], md[1]) end