lib/ADB.rb in ADB-0.5.2 vs lib/ADB.rb in ADB-0.5.3

- old
+ new

@@ -9,11 +9,11 @@ # which is a part of the android toolset. # module ADB include ADB::Instrumentation - attr_reader :last_stdout, :last_stderr + attr_reader :last_stdout, :last_stderr # # start the server process # # @param timeout value for the command to complete. Defaults to 30 @@ -157,24 +157,24 @@ # :emulator, and :serial. # @param timeout value for the command to complete. Defaults to 30 # seconds. # def push(source, destination, target={}, timeout=30) - execute_adb_with(timeout, "#{which_one(target)} push #{source} #{destination}") + execute_adb_with_exactly(timeout, "#{which_one(target)} push", source, destination) end # - # push a file + # pull a file # # @param the fully quanified source (device) file name # @param the fully quanified destination (local) file name # @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 pull(source, destination, target={}, timeout=30) - execute_adb_with(timeout, "#{which_one(target)} pull #{source} #{destination}") + execute_adb_with_exactly(timeout, "#{which_one(target)} pull", source, destination) end # # remount /system as read-write #