logstash/bin/cpdump
Colin Surprenant 70415455d9 add bin/ruby command to launch ruby scripts using the logstash launcher
use bin/ruby instead of hardcoded vendorized jruby

without :development

remove symlink check per PR discussiom, will re-introduce in a followup PR
2017-01-30 17:07:53 -05:00

11 lines
373 B
Ruby
Executable file

#!/usr/bin/env bin/ruby
require_relative "../lib/bootstrap/environment"
LogStash::Bundler.setup!({:without => [:build, :development]})
require "logstash-core"
require "logstash/environment"
require "logstash/settings"
io = Java::OrgLogstashCommonIo::FileCheckpointIO.new(LogStash::SETTINGS.get_value("path.queue"))
cp = io.read(ARGV[0])
puts("checkpoint #{cp.toString}")