Enable getting user input for ruby plugins

This commit is contained in:
sophia 2021-05-05 11:17:54 -05:00 committed by Paul Hinze
parent bc095b06dc
commit 552a43744e
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -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|