Add output for local repair

This commit is contained in:
Chris Roberts 2018-07-18 15:48:13 -07:00
parent ab39125570
commit 8e0e2fc53a
2 changed files with 7 additions and 1 deletions

View File

@ -44,6 +44,7 @@ module VagrantPlugins
end end
def call(env) 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| Vagrant::Plugin::Manager.instance.localize!(env[:env]).each_pair do |pname, pinfo|
env[:env].action_runner.run(Action.action_install, env[:env].action_runner.run(Action.action_install,
plugin_name: pname, plugin_name: pname,
@ -53,6 +54,7 @@ module VagrantPlugins
plugin_env_local: true plugin_env_local: true
) )
end end
env[:ui].info(I18n.t("vagrant.commands.plugin.repair_local_complete"))
# Continue # Continue
@app.call(env) @app.call(env)
end end

View File

@ -1920,9 +1920,13 @@ en:
%{message} %{message}
repairing: |- 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: |- repair_complete: |-
Installed plugins successfully repaired! Installed plugins successfully repaired!
repair_local_complete: |-
Local project plugins successfully repaired!
repair_failed: |- repair_failed: |-
Failed to automatically repair installed Vagrant plugins. To fix this Failed to automatically repair installed Vagrant plugins. To fix this
problem remove all user installed plugins and reinstall. Vagrant can problem remove all user installed plugins and reinstall. Vagrant can