Merge pull request #1986 from ipwnstuff/feature/plugin-post-install-message

commands/plugin/install: Display a plugin's post install message if available
This commit is contained in:
Mitchell Hashimoto 2013-08-09 11:24:19 -07:00
commit 8e3422403f
2 changed files with 17 additions and 0 deletions

View File

@ -73,6 +73,19 @@ module VagrantPlugins
:name => plugin_spec.name,
:version => plugin_spec.version.to_s))
# If the plugin's spec includes a post-install message display it
if (post_install_message = plugin_spec.post_install_message)
post_install_message = if post_install_message.kind_of? Array
post_install_message.join(" ")
else
post_install_message.to_s
end
env[:ui].info(I18n.t("vagrant.commands.plugin.post_install",
:name => plugin_spec.name,
:message => post_install_message))
end
# Continue
@app.call(env)
end

View File

@ -726,6 +726,10 @@ en:
Installing the '%{name}' plugin. This can take a few minutes...
uninstalling: |-
Uninstalling the '%{name}' plugin...
post_install: |-
Post install message from the '%{name}' plugin:
%{message}
status:
aborted: |-
The VM is in an aborted state. This means that it was abruptly