forked from elastic/logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle
executable file
·27 lines (20 loc) · 900 Bytes
/
bundle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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
::Gem.paths = ENV['GEM_HOME'] = ENV['GEM_PATH'] = LogStash::Environment.logstash_gem_home
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