Method: RunLoop::Core.detect_connected_device

Defined in:
lib/run_loop/core.rb

.detect_connected_deviceObject

Deprecated.

2.1.0

Replaced with Device.detect_physical_device_on_usb



571
572
573
574
575
576
577
578
579
580
# File 'lib/run_loop/core.rb', line 571

def self.detect_connected_device
  begin
    Timeout::timeout(1, RunLoop::TimeoutError) do
      return `#{File.join(SCRIPTS_PATH, 'udidetect')}`.chomp
    end
  rescue RunLoop::TimeoutError => _
    `killall udidetect &> /dev/null`
  end
  nil
end