Method: ADB#forward

Defined in:
lib/ADB.rb

#forward(source, destination, target = {}, timeout = 30) ⇒ Object

setup port forwarding

:emulator, and :serial. seconds.

Parameters:

  • the

    source protocol:port

  • the

    destination protocol:port

  • which (Hash)

    device to wait for. Valid keys are :device,

  • timeout (defaults to: 30)

    value for the command to complete. Defaults to 30



147
148
149
# File 'lib/ADB.rb', line 147

def forward(source, destination, target={}, timeout=30)
  execute_adb_with(timeout, "#{which_one(target)} forward #{source} #{destination}")
end