lib/bundler/cli.rb in bundler-1.0.0.beta.8 vs lib/bundler/cli.rb in bundler-1.0.0.beta.9
- old
+ new
@@ -210,24 +210,10 @@
into the systemwide Rubygems repository.
D
def exec(*)
ARGV.delete("exec")
- # Set PATH
- paths = (ENV["PATH"] || "").split(File::PATH_SEPARATOR)
- paths.unshift "#{Bundler.bundle_path}/bin"
- ENV["PATH"] = paths.uniq.join(File::PATH_SEPARATOR)
-
- # Set BUNDLE_GEMFILE
- ENV["BUNDLE_GEMFILE"] = Bundler::SharedHelpers.default_gemfile.to_s
-
- # Set RUBYOPT
- rubyopt = [ENV["RUBYOPT"]].compact
- if rubyopt.empty? || rubyopt.first !~ /-rbundler\/setup/
- rubyopt.unshift "-rbundler/setup"
- rubyopt.unshift "-I#{File.expand_path('../..', __FILE__)}"
- ENV["RUBYOPT"] = rubyopt.join(' ')
- end
+ Bundler.setup
begin
# Run
Kernel.exec(*ARGV)
rescue Errno::EACCES