mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
bin/bundle shim
use instead for $: exclude bin/bundle from packages added comment
This commit is contained in:
parent
9949546057
commit
9ddae56019
2 changed files with 28 additions and 5 deletions
24
bin/bundle
Executable file
24
bin/bundle
Executable file
|
@ -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
|
|
@ -16,16 +16,15 @@ namespace "artifact" do
|
|||
|
||||
def exclude_paths
|
||||
return @exclude_paths if @exclude_paths
|
||||
|
||||
@exclude_paths = []
|
||||
#gitignore = File.join(File.dirname(__FILE__), "..", ".gitignore")
|
||||
#if File.exists?(gitignore)
|
||||
#@exclude_paths += File.read(gitignore).split("\n")
|
||||
#end
|
||||
@exclude_paths << "spec/reports/**/*"
|
||||
@exclude_paths << "**/*.gem"
|
||||
@exclude_paths << "**/test/files/slow-xpath.xml"
|
||||
@exclude_paths << "**/logstash-*/spec"
|
||||
return @exclude_paths
|
||||
@exclude_paths << "bin/bundle"
|
||||
|
||||
@exclude_paths
|
||||
end
|
||||
|
||||
def excludes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue