List plugins should have output when no plugins

This commit is contained in:
Mitchell Hashimoto 2013-02-03 13:13:22 -08:00
parent 5882d5dad6
commit 455745277c
2 changed files with 8 additions and 2 deletions

View File

@ -40,8 +40,12 @@ module VagrantPlugins
end
# Output!
installed_map.values.each do |spec|
env[:ui].info "#{spec.name} (#{spec.version})"
if installed_map.empty?
env[:ui].info(I18n.t("vagrant.commands.plugin.no_plugins"))
else
installed_map.values.each do |spec|
env[:ui].info "#{spec.name} (#{spec.version})"
end
end
@app.call(env)

View File

@ -417,6 +417,8 @@ en:
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
plugin:
no_plugins: |-
No plugins installed.
installing: |-
Installing the '%{name}' plugin. This can take a few minutes...
uninstalling: |-