mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- genreate with version replacement
This commit is contained in:
parent
3f44a28379
commit
7ef959e265
1 changed files with 3 additions and 1 deletions
|
@ -166,7 +166,9 @@ class LogStashConfigDocGenerator
|
|||
Dir.mkdir(settings[:output]) if !File.directory?(settings[:output])
|
||||
Dir.mkdir(dir) if !File.directory?(dir)
|
||||
File.open(path, "w") do |out|
|
||||
out.puts(template.result(binding))
|
||||
html = template.result(binding)
|
||||
html.gsub!("%VERSION%", LOGSTASH_VERSION)
|
||||
out.puts(html)
|
||||
end
|
||||
else
|
||||
puts template.result(binding)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue