forked from elastic/logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use instead for $: exclude bin/bundle from packages added comment
- Loading branch information
1 parent
8d547ca
commit bde2691
Showing
2 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/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 } | ||
|
||
$LOAD_PATH.unshift(File.expand_path(File.join("__FILE__", "..", "lib"))) | ||
|
||
require "logstash/environment" | ||
Gem.clear_paths | ||
Gem.paths = ENV['GEM_HOME'] = ENV['GEM_PATH'] = LogStash::Environment.logstash_gem_home | ||
|
||
require "bundler" | ||
require "bundler/cli" | ||
require "bundler/friendly_errors" | ||
require "logstash/patches/bundler" | ||
|
||
Bundler.with_friendly_errors do | ||
Bundler::CLI.start(ARGV, :debug => true) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters