waiting ssh command in log

This commit is contained in:
amartynov 2015-08-19 20:21:10 +03:00
parent 3e4c316523
commit 065e93d409

View File

@ -114,7 +114,9 @@ module Devops
@out << "\nWaiting for SSH..."
@out.flush
i = 0
cmd = "ssh -i #{cert_path} -q #{@server.remote_user}@#{ip} 'exit' 2>&1"
cmd = "ssh -i #{cert_path} -q #{@server.remote_user}@#{ip} 'exit'"
out << "Test command: '#{cmd}'\n"
cmd << " 2>&1"
begin
sleep(5)
res = `#{cmd}`