bin/bundle shim

use  instead for $:

exclude bin/bundle from packages

added comment
This commit is contained in:
Colin Surprenant 2015-04-17 15:32:23 +02:00
parent 9949546057
commit 9ddae56019
2 changed files with 28 additions and 5 deletions

24
bin/bundle Executable file
View 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

View file

@ -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