Sha256: faf3643e82a11d36613ac2d619609891a4948c7f10464c00cc66e46a4c427939
Contents?: true
Size: 536 Bytes
Versions: 9
Compression:
Stored size: 536 Bytes
Contents
require 'ADB' require 'stf/client' require 'stf/log/log' require 'stf/errors' require 'stf/interactor/stop_debug_session_interactor' class StopAllDebugSessionsInteractor include Log include ADB def initialize(stf) @stf = stf end def execute connected_devices = devices() remote_devices = @stf.get_user_devices.map { |d| d.remoteConnectUrl } pending_disconnect = connected_devices & remote_devices pending_disconnect.each do |d| StopDebugSessionInteractor.new(@stf).execute d end end end
Version data entries
9 entries across 9 versions & 2 rubygems