Module: AdbDevice
- Defined in:
- lib/adb_device.rb,
lib/adb_device/device.rb,
lib/adb_device/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.3.0"
Class Method Summary collapse
Class Method Details
.device_list ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/adb_device.rb', line 7 def AdbDevice.device_list output = `adb devices` udids = [] if output.match?(/\n([0-9a-zA-Z].+)\t/) udids = output.scan(/\n([0-9a-zA-Z].+)\t/).flatten else return "No devices connected" end udids end |