From 552a43744e859b68f003eba64de5eb7aef78617e Mon Sep 17 00:00:00 2001 From: sophia Date: Wed, 5 May 2021 11:17:54 -0500 Subject: [PATCH] Enable getting user input for ruby plugins --- lib/vagrant/ui.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/vagrant/ui.rb b/lib/vagrant/ui.rb index 7994dc4cc..e3b78231a 100644 --- a/lib/vagrant/ui.rb +++ b/lib/vagrant/ui.rb @@ -283,15 +283,16 @@ module Vagrant end end - class RemoteUI < NonInteractive + class RemoteUI < Basic def initialize(client) super() @client = client end - # TODO - def ask(*args) - raise Errors::UIExpectsTTY + # This method handles actually outputting a message of a given type + # to the console. + def say(type, message, opts={}) + @client.output([message]) end [:detail, :warn, :error, :info, :output, :success].each do |method|