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
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

View File

@ -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