Method: Net::SSH::Connection::Channel#wait

Defined in:
lib/net/ssh/connection/channel.rb

#waitObject

Runs the SSH event loop until the channel is no longer active. This is handy for blocking while you wait for some channel to finish.

channel.exec("grep ...") { ... }
channel.wait


268
269
270
# File 'lib/net/ssh/connection/channel.rb', line 268

def wait
  connection.loop { active? }
end