From 8e0e2fc53af8b5f7693c8783a9d80b217fa8919e Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 18 Jul 2018 15:48:13 -0700 Subject: [PATCH] Add output for local repair --- plugins/commands/plugin/action/repair_plugins.rb | 2 ++ templates/locales/en.yml | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/commands/plugin/action/repair_plugins.rb b/plugins/commands/plugin/action/repair_plugins.rb index 0d13907dd..5421f000d 100644 --- a/plugins/commands/plugin/action/repair_plugins.rb +++ b/plugins/commands/plugin/action/repair_plugins.rb @@ -44,6 +44,7 @@ module VagrantPlugins end def call(env) + env[:ui].info(I18n.t("vagrant.commands.plugin.repairing_local")) Vagrant::Plugin::Manager.instance.localize!(env[:env]).each_pair do |pname, pinfo| env[:env].action_runner.run(Action.action_install, plugin_name: pname, @@ -53,6 +54,7 @@ module VagrantPlugins plugin_env_local: true ) end + env[:ui].info(I18n.t("vagrant.commands.plugin.repair_local_complete")) # Continue @app.call(env) end diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 6c28b16d8..a1e0d4e97 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -1920,9 +1920,13 @@ en: %{message} repairing: |- - Repairing currently installed plugins. This may take a few minutes... + Repairing currently installed global plugins. This may take a few minutes... + repairing_local: |- + Repairing currently installed local project plugins. This may take a few minutes... repair_complete: |- Installed plugins successfully repaired! + repair_local_complete: |- + Local project plugins successfully repaired! repair_failed: |- Failed to automatically repair installed Vagrant plugins. To fix this problem remove all user installed plugins and reinstall. Vagrant can