Skip to content

Commit

Permalink
bin/bundle shim
Browse files Browse the repository at this point in the history
use  instead for $:

exclude bin/bundle from packages

added comment
  • Loading branch information
colinsurprenant committed Apr 20, 2015
1 parent 8d547ca commit bde2691
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
24 changes: 24 additions & 0 deletions bin/bundle
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
9 changes: 4 additions & 5 deletions rakelib/artifacts.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bde2691

Please sign in to comment.