02f85e4e59
This will be eventually converted to Bats...
12 lines
352 B
Ruby
12 lines
352 B
Ruby
# Monkey patch vagrant in order to reuse the UI test object that is set on
|
|
# our Vagrant::Environments
|
|
#
|
|
require 'vagrant/machine'
|
|
Vagrant::Machine.class_eval do
|
|
alias :old_action :action
|
|
|
|
define_method :action do |action_name, extra_env = nil|
|
|
extra_env = { ui: @env.ui }.merge(extra_env || {})
|
|
old_action action_name, extra_env
|
|
end
|
|
end
|