Skip to content

Commit

Permalink
fix bin/bundle command
Browse files Browse the repository at this point in the history
  • Loading branch information
colinsurprenant committed Oct 21, 2015
1 parent 856725b commit 54fb7d6
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bin/bundle
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,19 @@
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
::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.with_friendly_errors do
Bundler::CLI.start(ARGV, :debug => true)
::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

0 comments on commit 54fb7d6

Please sign in to comment.