Sha256: a70b5f35948c8d92b628315782f0a4ec3eeee48083f4a11dda4cb167f32a022e
Contents?: true
Size: 551 Bytes
Versions: 14
Compression:
Stored size: 551 Bytes
Contents
require 'ADB' require 'di' require 'stf/client' require 'stf/log/log' require 'stf/errors' require 'stf/model/session' require 'stf/model/device' module Stf class GetKeysInteractor include Log include ADB def execute devices = DI[:stf].get_devices if devices.nil? || (devices.is_a?(Array) && devices.empty?) logger.info 'No devices connected to STF' return [] end devices .map {|d| Device.new(d)} .flat_map {|d| d.getKeys} .uniq .sort end end end
Version data entries
14 entries across 14 versions & 1 rubygems