diff --git a/lib/vagrant/bundler.rb b/lib/vagrant/bundler.rb index 683d0a623..0a657fdc1 100644 --- a/lib/vagrant/bundler.rb +++ b/lib/vagrant/bundler.rb @@ -25,6 +25,13 @@ module Vagrant @gem_home = ENV["GEM_HOME"] @gem_path = ENV["GEM_PATH"] + end + + # Initializes Bundler and the various gem paths so that we can begin + # loading gems. This must only be called once. + def init!(plugins) + # If we're not enabled, then we don't do anything. + return if !@enabled # Set the Bundler UI to be a silent UI. We have to add the # `silence` method to it because Bundler UI doesn't have it. @@ -35,13 +42,6 @@ module Vagrant yield end end - end - - # Initializes Bundler and the various gem paths so that we can begin - # loading gems. This must only be called once. - def init!(plugins) - # If we're not enabled, then we don't do anything. - return if !@enabled bundle_path = Vagrant.user_data_path.join("gems")