Class: Rubotium::Adb::Commands::ShellCommand

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

Constant Summary collapse

COMMAND =
'shell'

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ ShellCommand

Returns a new instance of ShellCommand.



7
8
9
# File 'lib/rubotium/adb/commands/shell_command.rb', line 7

def initialize(command)
  @command = command
end

Instance Method Details

#executable_commandObject



11
12
13
# File 'lib/rubotium/adb/commands/shell_command.rb', line 11

def executable_command
  "#{COMMAND} #{command}"
end