Method: MescalCli::Ssh#run!

Defined in:
lib/mescal-cli/ssh.rb

#run!Object



7
8
9
10
11
12
13
# File 'lib/mescal-cli/ssh.rb', line 7

def run!
  ip = @task.slave_ip
  port = @task.ssh_port
  killer = "#{$0} kill #{@task.id}"
  puts "SSH'ing to root@#{ip}:#{port}"
  exec "ssh -o LogLevel=quiet -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@#{ip} -p #{port}; #{killer}"
end