class Bundler::CLI

def auto_install

`Installer` that'll keep a reference to the old one instead.
should be called first, before you instantiate anything like an
Note that this method `nil`s out the global Definition object, so it

`bundle config auto_install 1`.
Bundler.settings[:auto_install] exists. This is set through config cmd
Automatically invoke `bundle install` and resume if
def auto_install
  return unless Bundler.settings[:auto_install]
  begin
    Bundler.definition.specs
  rescue GemNotFound
    Bundler.ui.info "Automatically installing missing gems."
    Bundler.reset!
    invoke :install, []
    Bundler.reset!
  end
end