Class: Hiera::Backend::Eyaml::Parser::ParserFactory
- Inherits:
-
Object
- Object
- Hiera::Backend::Eyaml::Parser::ParserFactory
- Defined in:
- lib/hiera/backend/eyaml/parser/parser.rb
Class Method Summary collapse
Class Method Details
.decrypted_parser ⇒ Object
16 17 18 19 20 |
# File 'lib/hiera/backend/eyaml/parser/parser.rb', line 16 def self.decrypted_parser dec_string = DecStringTokenType.new dec_block = DecBlockTokenType.new Parser.new([dec_string, dec_block]) end |
.encrypted_parser ⇒ Object
10 11 12 13 14 |
# File 'lib/hiera/backend/eyaml/parser/parser.rb', line 10 def self.encrypted_parser enc_string = EncStringTokenType.new enc_block = EncBlockTokenType.new Parser.new([enc_string, enc_block]) end |
.hiera_backend_parser ⇒ Object
22 23 24 25 |
# File 'lib/hiera/backend/eyaml/parser/parser.rb', line 22 def self.hiera_backend_parser enc_hiera = EncHieraTokenType.new Parser.new([enc_hiera]) end |