Skip to content

Commit e07dc8a

Browse files
committed
add missing logstash_plugin helper
1 parent 6623cb1 commit e07dc8a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: x-pack/qa/integration/support/helpers.rb

+8
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,14 @@ def logstash_with_empty_default(cmd, options = {}, default_settings = {})
164164
Belzebuth.run(cmd, {:directory => get_logstash_path }.merge(options.fetch(:belzebuth, { })))
165165
end
166166

167+
def logstash_plugin(command, *args)
168+
cmd = Shellwords.join(["bin/logstash-plugin", command, *args])
169+
pwd = Pathname.new(get_logstash_path).cleanpath.to_s
170+
171+
puts "Running logstash plugin manager with `#{cmd}` in `#{pwd}`"
172+
Belzebuth.run(cmd, directory: pwd, timeout: 60)
173+
end
174+
167175
def verify_response!(cmd, response)
168176
unless response.successful?
169177
raise "Something went wrong when installing xpack,\ncmd: #{cmd}\nresponse: #{response}"

0 commit comments

Comments
 (0)