diff options
author | Victor Koronen <koronen@kth.se> | 2015-08-08 17:09:04 +0200 |
---|---|---|
committer | Victor Koronen <koronen@kth.se> | 2015-08-14 12:29:44 +0200 |
commit | a43b23955edec4ea4913f0d6960930f6b6cd9516 (patch) | |
tree | 82b5387fe55b8f41a3cb30dddf4e7e3f78e5dc01 /lib/bundler/cli.rb | |
parent | 452691f4c0dfb802c120b8d2f6a6f43f2319e02e (diff) | |
download | bundler-a43b23955edec4ea4913f0d6960930f6b6cd9516.tar.gz |
Fix Style/IndentationConsistency
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r-- | lib/bundler/cli.rb | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index c481ac7322..00df870e28 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -411,24 +411,24 @@ module Bundler private - # Automatically invoke `bundle install` and resume if - # Bundler.settings[:auto_install] exists. This is set through config cmd - # `bundle config auto_install 1`. - # - # Note that this method `nil`s out the global Definition object, so it - # should be called first, before you instantiate anything like an - # `Installer` that'll keep a reference to the old one instead. - 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 + # Automatically invoke `bundle install` and resume if + # Bundler.settings[:auto_install] exists. This is set through config cmd + # `bundle config auto_install 1`. + # + # Note that this method `nil`s out the global Definition object, so it + # should be called first, before you instantiate anything like an + # `Installer` that'll keep a reference to the old one instead. + 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 end end |