mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Some other minor changes include: * add back the user level boostrap scripts, useful in that case to pull latest released LS * cleanup formatting for specs and fixed bootstrap scripts for redhats * make the latest logstash version available from the current platform config file * make sure debian based machines use java8 * make sure to use hostname and not just ip:port address when reporting the names Fixes #5350
27 lines
503 B
Ruby
27 lines
503 B
Ruby
# encoding: utf-8
|
|
require_relative "../../vagrant/helpers"
|
|
|
|
module ServiceTester
|
|
|
|
class Base
|
|
|
|
LOCATION="/logstash-build".freeze
|
|
|
|
def snapshot(host)
|
|
LogStash::VagrantHelpers.save_snapshot(host)
|
|
end
|
|
|
|
def restore(host)
|
|
LogStash::VagrantHelpers.restore_snapshot(host)
|
|
end
|
|
|
|
def start_service(service, host=nil)
|
|
service_manager(service, "start", host)
|
|
end
|
|
|
|
def stop_service(service, host=nil)
|
|
service_manager(service, "stop", host)
|
|
end
|
|
|
|
end
|
|
end
|