class RestartCommand
Public Instance Methods
description()
click to toggle source
# File lib/replicant/commands/restart_command.rb, line 2 def description "restart ADB" end
run()
click to toggle source
# File lib/replicant/commands/restart_command.rb, line 6 def run # Faster than kill-server, and also catches ADB instances launched by # IntelliJ. Moreover, start-server after kill-server sometimes makes the # server fail to start up unless you sleep for a second or so `killall adb` AdbCommand.new(@repl, "start-server").execute end