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

- old
+ new

@@ -157,11 +157,12 @@ # :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_exactly(timeout, "#{which_one(target)} push", source, destination) + args = "#{which_one(target)} push".split + execute_adb_with_exactly(timeout, *args, source, destination) end # # pull a file # @@ -171,10 +172,11 @@ # :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_exactly(timeout, "#{which_one(target)} pull", source, destination) + args = "#{which_one(target)} pull".split + execute_adb_with_exactly(timeout, *args, source, destination) end # # remount /system as read-write #