Class: Bundler::SelfManager

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/self_manager.rb

Overview

This class handles installing and switching to the version of bundler needed by an application.

Instance Method Summary collapse

Instance Method Details

#install_locked_bundler_and_restart_with_it_if_neededObject



15
16
17
18
19
# File 'lib/bundler/self_manager.rb', line 15

def install_locked_bundler_and_restart_with_it_if_needed
  return unless needs_switching?

  install_and_restart_with_locked_bundler
end

#restart_with_locked_bundler_if_neededObject



9
10
11
12
13
# File 'lib/bundler/self_manager.rb', line 9

def restart_with_locked_bundler_if_needed
  return unless needs_switching? && installed?

  restart_with_locked_bundler
end