Setup dummy env

This commit is contained in:
sophia 2021-04-08 12:43:04 -05:00 committed by Paul Hinze
parent 5498c22983
commit 893e37711e
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -71,7 +71,7 @@ module VagrantPlugins
# Create a new anonymous class based on the command class
# so we can modify the setup behavior
klass = Class.new(cmd_cls)
klass.class_eval do
def subcommands
@subcommands
@ -84,7 +84,7 @@ module VagrantPlugins
nil
end
end
klass
end
@ -139,16 +139,16 @@ module VagrantPlugins
cmd_cls = cmd.subcommands[subcommand.to_sym]
cmd = augment_cmd_class(cmd_cls).new([], happy_klass.new)
end
begin
cmd.execute
rescue Vagrant::Errors::VagrantError
# ignore
end
options = Thread.current.thread_variable_get(:command_options)
msg = Thread.current.thread_variable_get(:command_info)
# Clean our option data out of the thread
Thread.current.thread_variable_set(:command_options, nil)