# File lib/git-up.rb, line 233 def check_bundler return unless use_bundler? begin require 'bundler' ENV['BUNDLE_GEMFILE'] ||= File.expand_path('Gemfile') Gem.loaded_specs.clear Bundler.setup rescue Bundler::GemNotFound, Bundler::GitError puts print 'Gems are missing. '.yellow if config("bundler.autoinstall") == 'true' puts "Running `bundle install`.".yellow system "bundle", "install" else puts "You should `bundle install`.".yellow end end end