Method: Bundler::SelfManager#update_bundler_and_restart_with_it_if_needed
- Defined in:
- lib/bundler/self_manager.rb
#update_bundler_and_restart_with_it_if_needed(target) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/bundler/self_manager.rb', line 31 def update_bundler_and_restart_with_it_if_needed(target) return unless autoswitching_applies? spec = resolve_update_version_from(target) return unless spec version = spec.version Bundler.ui.info "Updating bundler to #{version}." install(spec) restart_with(version) end |