lib/vagrant/plugin/manager.rb
# Updates all or a specific set of plugins.
Updates all or a specific set of plugins.
Updates all or a specific set of plugins .
def update_plugins(specific)
        result = Vagrant::Bundler.instance.update(installed_plugins, specific)
        installed_plugins.each do |name, info|
          matching_spec = result.detect{|s| s.name == name}
          info = Hash[
            info.map do |key, value|
              [key.to_sym, value]
            end
          ]
          if matching_spec
            @user_file.add_plugin(name, **info.merge(
              version: "> 0",
              installed_gem_version: matching_spec.version.to_s
            ))
          end
        end
        Vagrant::Bundler.instance.clean(installed_plugins)
        result
      rescue Gem::Exception => e
        raise Errors::BundlerError, message: e.to_s
      end
def update_plugins ( specific ) result = Vagrant :: Bundler . instance . update ( installed_plugins , specific ) installed_plugins . each do | name , info | matching_spec = result . detect { | s | s . name == name } info = Hash [ info . map do | key , value | [ key . to_sym , value ] end ] if matching_spec @user_file . add_plugin ( name , ** info . merge ( version : "> 0" , installed_gem_version : matching_spec . version . to_s ) ) end end Vagrant :: Bundler . instance . clean ( installed_plugins ) result rescue Gem :: Exception => e raise Errors :: BundlerError , message : e . to_s end
Updates all or a specific set of plugins.
Updates all or a specific set of plugins .
specific