class Bundler::SelfManager

def needs_switching?

def needs_switching?
  autoswitching_applies? &&
    released?(lockfile_version) &&
    !running?(lockfile_version) &&
    !updating?
end