Class: Rubotium::Adb::Commands::PushCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/rubotium/adb/commands/push_command.rb

Constant Summary collapse

COMMAND =
'push'

Instance Method Summary collapse

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_commandObject



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