Sha256: 6606af0d66f835adb08c20aada70e9d3e66d5156fa305357fcca3a6316325369
Contents?: true
Size: 683 Bytes
Versions: 3
Compression:
Stored size: 683 Bytes
Contents
module Manymo class ADB attr_accessor :path def initialize(path = nil) @path = path end def path @path || 'adb' end def ensure_available if @path if !File.exists?(@path) STDERR.puts "Specified ADB executable (#{@path}) not found." exit 1 end else found_adb = false begin `adb version` found_adb = true rescue Errno::ENOENT end if (!found_adb) STDERR.puts "Could not find adb. Please install the Android SDK and make sure its platform-tools directory is in your PATH." exit 1 end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
manymo-2.0.0.beta3 | lib/manymo/adb.rb |
manymo-2.0.0.beta2 | lib/manymo/adb.rb |
manymo-2.0.0.beta | lib/manymo/adb.rb |