lib/ADB.rb in ADB-0.3 vs lib/ADB.rb in ADB-0.4
- old
+ new
@@ -1,10 +1,10 @@
require 'ADB/version'
require 'ADB/errors'
require 'childprocess'
require 'tempfile'
-
+require 'date'
#
# Mixin that provides access to the commands of the adb executable
# which is a part of the android toolset.
#
module ADB
@@ -89,11 +89,11 @@
# @param [Hash] which device to wait for. Valid keys are :device,
# :emulator, and :serial.
# @param timeout value for the command to complete. Defaults to 30
# seconds.
#
- def install(installable, target={}, timeout=30)
- execute_adb_with(timeout, "#{which_one(target)} install #{installable}")
+ def install(installable, options=nil, target={}, timeout=30)
+ execute_adb_with(timeout, "#{which_one(target)} wait-for-device install #{options} #{installable}")
raise ADBError, "Could not install #{installable}" unless stdout_contains "Success"
end
#
# uninstall an apk file to a device