Class: Rubotium::Adb::Commands::PushCommand
- Inherits:
-
Object
- Object
- Rubotium::Adb::Commands::PushCommand
- Defined in:
- lib/rubotium/adb/commands/push_command.rb
Constant Summary collapse
- COMMAND =
'push'
Instance Method Summary collapse
- #executable_command ⇒ Object
-
#initialize(local_glob, remote_dest) ⇒ PushCommand
constructor
A new instance of PushCommand.
Constructor Details
#initialize(local_glob, remote_dest) ⇒ PushCommand
Returns a new instance of PushCommand.
7 8 9 10 |
# File 'lib/rubotium/adb/commands/push_command.rb', line 7 def initialize(local_glob, remote_dest) @local_paths = Dir[local_glob] @remote_dest = remote_dest end |
Instance Method Details
#executable_command ⇒ Object
12 13 14 15 16 |
# File 'lib/rubotium/adb/commands/push_command.rb', line 12 def executable_command local_paths.map do |path| "#{COMMAND} #{path} #{remote_dest}" end end |