Method: Wemux::Pair::SshTunnel#close_tunnels
- Defined in:
- lib/wemux/pair/ssh_tunnel.rb
#close_tunnels ⇒ Object
40 41 42 43 |
# File 'lib/wemux/pair/ssh_tunnel.rb', line 40 def close_tunnels puts "Closing existing tunnels..." system "ssh #{} -O exit #{ssh_user}@#{ssh_host}" until $? && !$?.success? end |