# File lib/blimpy/box.rb, line 249 def wait_for_sshd return if @ssh_connected start = Time.now.to_i use_exec = @exec_commands # Even if we are supposed to use #exec here, we wait to disable it until # after sshd(8) comes online @exec_commands = false until @ssh_connected # Run the `true` command and exit @ssh_connected = ssh_into('-q', 'true') unless @ssh_connected if (Time.now.to_i - start) < 60 print '.' sleep 1 end end end puts @exec_commands = use_exec end