mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
parent
c233059d74
commit
707c23f6ce
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ $: << Dir.pwd
|
|||
$: << File.join(File.dirname(__FILE__), "..", "lib")
|
||||
$: << File.join(File.dirname(__FILE__), "..", "rakelib")
|
||||
|
||||
require_relative "../lib/bootstrap/environment" #needed for LogStash::Environment constants LOGSTASH_HOME
|
||||
require "logstash/config/mixin"
|
||||
require "logstash/inputs/base"
|
||||
require "logstash/codecs/base"
|
||||
|
@ -161,7 +162,7 @@ class LogStashConfigAsciiDocGenerator
|
|||
load file
|
||||
|
||||
# Get the correct base path
|
||||
base = File.join(::LogStash::Environment::LOGSTASH_HOME,'lib/logstash', file.split("/")[-2])
|
||||
base = File.join(::LogStash::Environment::LOGSTASH_HOME,'logstash-core/lib/logstash', file.split("/")[-2])
|
||||
|
||||
# parse base first
|
||||
parse(File.new(File.join(base, "base.rb"), "r").read)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue