Silent UI can't respond to `ask`
This commit is contained in:
parent
729955b0ea
commit
bab5d7b685
|
@ -31,7 +31,14 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
# This is a UI implementation that does nothing.
|
# This is a UI implementation that does nothing.
|
||||||
class Silent < Interface; end
|
class Silent < Interface
|
||||||
|
def ask(*args)
|
||||||
|
super
|
||||||
|
|
||||||
|
# Silent can't do this, obviously.
|
||||||
|
raise Errors::UIExpectsTTY
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# This is a UI implementation that outputs the text as is. It
|
# This is a UI implementation that outputs the text as is. It
|
||||||
# doesn't add any color.
|
# doesn't add any color.
|
||||||
|
|
Loading…
Reference in New Issue