Sha256: cbf0ee1f210fc5561777195bb2640152bd6af9f0670dcc8fb872371eb3648cf2
Contents?: true
Size: 589 Bytes
Versions: 5
Compression:
Stored size: 589 Bytes
Contents
# encoding: utf-8 require "logstash/devutils/rspec/spec_helper" require "stud/temporary" module LogStash::Environment # running the grok code outside a logstash package means # LOGSTASH_HOME will not be defined, so let's set it here # before requiring the grok filter unless self.const_defined?(:LOGSTASH_HOME) LOGSTASH_HOME = File.expand_path("../../../", __FILE__) end # also :pattern_path method must exist so we define it too unless self.method_defined?(:pattern_path) def pattern_path(path) ::File.join(LOGSTASH_HOME, "patterns", path) end end end
Version data entries
5 entries across 5 versions & 1 rubygems