core: convert more output to `output` method

This commit is contained in:
Mitchell Hashimoto 2014-01-17 20:34:25 -08:00
parent f713e43b00
commit 1b8f1a3864
2 changed files with 6 additions and 2 deletions

View File

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

View File

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