Build arguments for command via mapper directly
This commit is contained in:
parent
f903b0ee31
commit
faac057cca
@ -54,13 +54,14 @@ module VagrantPlugins
|
||||
with_info(ctx) do |info|
|
||||
plugin_name = info.plugin_name
|
||||
|
||||
ui, env, arguments = mapper.funcspec_map(req.spec, expect: [Vagrant::UI::Remote, Vagrant::Environment, SDK::Command::Arguments])
|
||||
|
||||
|
||||
# ui = Vagrant::UI::Remote.new(ui_client)
|
||||
# env = Vagrant::Environment.new(
|
||||
# {ui: ui, client: env_client}
|
||||
# )
|
||||
_, env, arguments = mapper.funcspec_map(
|
||||
req.spec,
|
||||
expect: [
|
||||
Vagrant::UI::Remote,
|
||||
Vagrant::Environment,
|
||||
SDK::Command::Arguments
|
||||
]
|
||||
)
|
||||
|
||||
plugin = Vagrant::Plugin::V2::Plugin.manager.commands[plugin_name.to_sym].to_a.first
|
||||
if !plugin
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user