Sha256: 40a2493a1b16ac8259f5e09c98eec52883f7c933fb03e6cdae3c4403c4dda4e3

Contents?: true

Size: 390 Bytes

Versions: 15

Compression:

Stored size: 390 Bytes

Contents

require_relative 'adb'
module Nakal
  module Android
    class Screen < Common::BaseScreen

      private

      def capture
        device_arg = ADB.multiple_devices_connected? ? "-s #{ENV['ADB_DEVICE_ARG']}" : ""
        `adb #{device_arg} shell  screencap -p /sdcard/#{@name}.png`
        `adb #{device_arg} pull /sdcard/#{@name}.png #{Nakal.image_location}`
      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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