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

Version Path
stf-client-neofreko-0.1.9 lib/stf/interactor/stop_all_debug_sessions_interactor.rb
stf-client-neofreko-0.1.8 lib/stf/interactor/stop_all_debug_sessions_interactor.rb
stf-client-neofreko-0.1.7 lib/stf/interactor/stop_all_debug_sessions_interactor.rb
stf-client-0.1.6 lib/stf/interactor/stop_all_debug_sessions_interactor.rb
stf-client-0.1.4 lib/stf/interactor/stop_all_debug_sessions_interactor.rb
stf-client-0.1.3 lib/stf/interactor/stop_all_debug_sessions_interactor.rb
stf-client-0.1.2 lib/stf/interactor/stop_all_debug_sessions_interactor.rb
stf-client-0.1.1 lib/stf/interactor/stop_all_debug_sessions_interactor.rb
stf-client-0.1.0 lib/stf/interactor/stop_all_debug_sessions_interactor.rb