Method: Wemux::Pair::SshTunnel#open

Defined in:
lib/wemux/pair/ssh_tunnel.rb

#openObject



25
26
27
28
29
# File 'lib/wemux/pair/ssh_tunnel.rb', line 25

def open
  close_tunnels
  puts "Opening tunnel..."
  system "ssh #{ssh_options} -f -N #{ssh_forwards} #{ssh_user}@#{ssh_host}"
end