logstash/bin/bundle
Pier-Hugues Pellerin 76286b4f0e use jruby 9.1.9.0
Work done by @guyboertje and @ph

Since JRuby 1.7.25 is now EOL we are migrating Logstash to use JRuby 9k and JDK8 only,
Not much needed updating to make this work, its was mostly a drop in replacement from the previous version.

The major point was the change in the implementation of Time in JRuby, JRuby now use `java.time`
instead of joda time, this allow JRuby to have nanoseconds precision on time object.
2017-06-12 12:35:10 -04:00

29 lines
905 B
Ruby
Executable file

#!/usr/bin/env ruby
# This is basically a copy of the original bundler "bundle" shim
# with the addition of the loading of our Bundler patches that
# modifies the .lock file naming. Without this, using the original Bundler bundle
# shim would result in creating or failing on a Gemfile.lock file.
# Exit cleanly from an early interrupt
Signal.trap("INT") { exit 1 }
require_relative "../lib/bootstrap/environment"
::Gem.clear_paths
ENV['GEM_HOME'] = ENV['GEM_PATH'] = LogStash::Environment.logstash_gem_home
::Gem.paths = ENV
ENV["BUNDLE_GEMFILE"] = LogStash::Environment::GEMFILE_PATH
require "bundler"
require "bundler/cli"
require "bundler/friendly_errors"
LogStash::Bundler.patch!
::Bundler.settings[:path] = LogStash::Environment::BUNDLE_DIR
::Bundler.settings[:gemfile] = LogStash::Environment::GEMFILE_PATH
::Bundler.with_friendly_errors do
::Bundler::CLI.start(ARGV, :debug => true)
end