commands/plugin: list puts plugin namein machine readable output
[GH-4506]
This commit is contained in:
parent
06defb37c7
commit
f23c5ebc46
|
@ -4,6 +4,8 @@ IMPROVEMENTS:
|
||||||
|
|
||||||
- core: `has_plugin?` function now takes a second argument which is a
|
- core: `has_plugin?` function now takes a second argument which is a
|
||||||
version constraint requirement. [GH-4650]
|
version constraint requirement. [GH-4650]
|
||||||
|
- commands/plugin: Plugin list machine-readable output contains the plugin
|
||||||
|
name as the target for versions and other info. [GH-4506]
|
||||||
- guests/arch: Support predictable network interface naming. [GH-4468]
|
- guests/arch: Support predictable network interface naming. [GH-4468]
|
||||||
- guests/suse: Support NFS client install, rsync setup. [GH-4492]
|
- guests/suse: Support NFS client install, rsync setup. [GH-4492]
|
||||||
- guests/tinycore: Support changing host names. [GH-4469]
|
- guests/tinycore: Support changing host names. [GH-4469]
|
||||||
|
|
|
@ -34,20 +34,29 @@ module VagrantPlugins
|
||||||
system = ", system" if plugin && plugin["system"]
|
system = ", system" if plugin && plugin["system"]
|
||||||
env[:ui].info "#{spec.name} (#{spec.version}#{system})"
|
env[:ui].info "#{spec.name} (#{spec.version}#{system})"
|
||||||
env[:ui].machine("plugin-name", spec.name)
|
env[:ui].machine("plugin-name", spec.name)
|
||||||
env[:ui].machine("plugin-version", "#{spec.version}#{system}")
|
env[:ui].machine(
|
||||||
|
"plugin-version",
|
||||||
|
"#{spec.version}#{system}",
|
||||||
|
target: spec.name)
|
||||||
|
|
||||||
if plugin["gem_version"] && plugin["gem_version"] != ""
|
if plugin["gem_version"] && plugin["gem_version"] != ""
|
||||||
env[:ui].info(I18n.t(
|
env[:ui].info(I18n.t(
|
||||||
"vagrant.commands.plugin.plugin_version",
|
"vagrant.commands.plugin.plugin_version",
|
||||||
version: plugin["gem_version"]))
|
version: plugin["gem_version"]))
|
||||||
env[:ui].machine("plugin-version-constraint", plugin["gem_version"])
|
env[:ui].machine(
|
||||||
|
"plugin-version-constraint",
|
||||||
|
plugin["gem_version"],
|
||||||
|
target: spec.name)
|
||||||
end
|
end
|
||||||
|
|
||||||
if plugin["require"] && plugin["require"] != ""
|
if plugin["require"] && plugin["require"] != ""
|
||||||
env[:ui].info(I18n.t(
|
env[:ui].info(I18n.t(
|
||||||
"vagrant.commands.plugin.plugin_require",
|
"vagrant.commands.plugin.plugin_require",
|
||||||
require: plugin["require"]))
|
require: plugin["require"]))
|
||||||
env[:ui].machine("plugin-custom-entrypoint", plugin["require"])
|
env[:ui].machine(
|
||||||
|
"plugin-custom-entrypoint",
|
||||||
|
plugin["require"],
|
||||||
|
target: spec.name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue