Method: RunLoop::Core.detect_connected_device
- Defined in:
- lib/run_loop/core.rb
.detect_connected_device ⇒ Object
60 61 62 63 64 65 66 67 68 69 |
# File 'lib/run_loop/core.rb', line 60 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 |