diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-12-21 17:30:44 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-12-21 17:41:15 -0200 |
commit | 2c838255ccadadeab5298b7c2bbc39035e59f248 (patch) | |
tree | ce03d8a37950ba4f213ef2e4f8c7627ed250b531 /lib/bundler/runtime.rb | |
parent | 4ef90b2f7364796a95ee93bfee9d565e4cf93310 (diff) | |
download | bundler-2c838255ccadadeab5298b7c2bbc39035e59f248.tar.gz |
PERFORMANCE: bundle exec shouldn't run Bundler.setup just setting the right rubyopts options is enough
This makes bundle exec rake environment of this
https://gist.github.com/d61b87f53277efd6079e Gemfile, 17% faster
Diffstat (limited to 'lib/bundler/runtime.rb')
-rw-r--r-- | lib/bundler/runtime.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb index 3b453d0c..86153b2a 100644 --- a/lib/bundler/runtime.rb +++ b/lib/bundler/runtime.rb @@ -200,12 +200,6 @@ module Bundler output end - private - - def cache_path - root.join("vendor/cache") - end - def setup_environment begin ENV["BUNDLE_BIN_PATH"] = Bundler.rubygems.bin_path("bundler", "bundle", VERSION) @@ -229,5 +223,11 @@ module Bundler ENV["RUBYOPT"] = rubyopt.join(' ') end end + + private + + def cache_path + root.join("vendor/cache") + end end end |