Method: LogStash::Config::File#parse
- Defined in:
- lib/logstash/config/file.rb
#parse(text) ⇒ Object
def initialize
18 19 20 21 22 23 24 25 |
# File 'lib/logstash/config/file.rb', line 18 def parse(text) grammar = LogStashConfigParser.new result = grammar.parse(text) if result.nil? raise LogStash::ConfigurationError, grammar.failure_reason end return result end |