core: convert more output to `output` method
This commit is contained in:
parent
f713e43b00
commit
1b8f1a3864
|
@ -50,7 +50,7 @@ module Vagrant
|
|||
end
|
||||
|
||||
# Wait for a result or an interrupt
|
||||
env[:ui].info I18n.t("vagrant.boot_waiting")
|
||||
env[:ui].output(I18n.t("vagrant.boot_waiting"))
|
||||
while ready_thr.alive? && states_thr.alive?
|
||||
sleep 1
|
||||
return if env[:interrupted]
|
||||
|
@ -72,7 +72,7 @@ module Vagrant
|
|||
raise Errors::VMBootTimeout
|
||||
end
|
||||
|
||||
env[:ui].info I18n.t("vagrant.boot_completed")
|
||||
env[:ui].output(I18n.t("vagrant.boot_completed"))
|
||||
|
||||
# Make sure our threads are all killed
|
||||
ready_thr.kill
|
||||
|
|
|
@ -49,6 +49,10 @@ module Vagrant
|
|||
# wait_for_ready waits until the communicator is ready, blocking
|
||||
# until then. It will wait up to the given duration or raise an
|
||||
# exception if something goes wrong.
|
||||
#
|
||||
# @param [Fixnum] duration Timeout in seconds.
|
||||
# @return [Boolean] Will return true on successful connection
|
||||
# or false on timeout.
|
||||
def wait_for_ready(duration)
|
||||
# By default, we implement a naive solution.
|
||||
begin
|
||||
|
|
Loading…
Reference in New Issue