class Net::SSH::Multi::PendingConnection::ForwardRecording

Public Class Methods

new() click to toggle source
# File lib/knife-zero/net_ssh_multi_patch.rb, line 12
def initialize
  @recordings = []
end

Public Instance Methods

remote(port, host, remote_port, remote_host="127.0.0.1") click to toggle source
# File lib/knife-zero/net_ssh_multi_patch.rb, line 16
def remote(port, host, remote_port, remote_host="127.0.0.1")
  @recordings << [:remote, port, host, remote_port, remote_host]
end
replay_on(session) click to toggle source
# File lib/knife-zero/net_ssh_multi_patch.rb, line 20
def replay_on(session)
  forward = session.forward
  @recordings.each {|args| forward.send *args}
end