Sha256: 32d01e58858a66d8d2240cc1e61e269538f5afbeab75932992ed9d4e160c2b78

Contents?: true

Size: 411 Bytes

Versions: 15

Compression:

Stored size: 411 Bytes

Contents

module Nakal
  module Android
    class ADB
      class << self
        attr_accessor :connected_devices

        def connected_devices
          @connected_devices ||= `adb devices`.scan(/\n(.*)\t/).flatten
        end

        def first_device
          connected_devices.first
        end

        def multiple_devices_connected?
          connected_devices.size > 1
        end

      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nakal-1.0.4 lib/nakal/android/adb.rb
nakal-1.0.3 lib/nakal/android/adb.rb
nakal-1.0.2 lib/nakal/android/adb.rb
nakal-1.0.1 lib/nakal/android/adb.rb
nakal-1.0.0 lib/nakal/android/adb.rb
nakal-0.1.2 lib/nakal/android/adb.rb
nakal-0.1.1 lib/nakal/android/adb.rb
nakal-0.1.0 lib/nakal/android/adb.rb
nakal-0.0.7 lib/nakal/android/adb.rb
nakal-0.0.6 lib/nakal/android/adb.rb
nakal-0.0.5 lib/nakal/android/adb.rb
nakal-0.0.4 lib/nakal/android/adb.rb
nakal-0.0.3 lib/nakal/android/adb.rb
nakal-0.0.2 lib/nakal/android/adb.rb
nakal-0.0.1 lib/nakal/android/adb.rb