Display post install messages if a plugin has any
This commit is contained in:
parent
14cce74c33
commit
2033eba2d4
|
@ -60,6 +60,19 @@ module VagrantPlugins
|
||||||
:name => plugin_spec.name,
|
:name => plugin_spec.name,
|
||||||
:version => plugin_spec.version.to_s))
|
: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
|
# Continue
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
end
|
end
|
||||||
|
|
|
@ -728,6 +728,7 @@ en:
|
||||||
Uninstalling the '%{name}' plugin...
|
Uninstalling the '%{name}' plugin...
|
||||||
post_install: |-
|
post_install: |-
|
||||||
Post install message from the '%{name}' plugin:
|
Post install message from the '%{name}' plugin:
|
||||||
|
|
||||||
%{message}
|
%{message}
|
||||||
status:
|
status:
|
||||||
aborted: |-
|
aborted: |-
|
||||||
|
|
Loading…
Reference in New Issue