Method: Net::SSH::Connection::Channel#do_success

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

#do_successObject

Invokes the next pending request callback with true as the second argument.



605
606
607
608
609
610
611
# File 'lib/net/ssh/connection/channel.rb', line 605

def do_success
  if callback = pending_requests.shift
    callback.call(self, true)
  else
    error { "channel success recieved with no pending request to handle it (bug?)" }
  end
end