+ # We install Bundler itself in the same place where Bundler will install
+ # bundled gems, for a few reasons:
+ # 1. Bundler will probably want to do this anyway to run itself with the
+ # specific version named in Gemfile.lock.
+ # 2. This is nicer to the sysadmin since we avoid messing with global state.
+ # 3. We can know exactly where the `bundle` command got installed.
+ local bundle_path="$SHARED_PATH/vendor_bundle"
+ export GEM_HOME="$bundle_path/ruby/$(ruby -e 'puts RUBY_VERSION')"
+ export GEM_PATH="$GEM_HOME"