Class: Aruba::Platforms::UnixCommandString

Inherits:
Object
  • Object
show all
Defined in:
lib/aruba/platforms/unix_command_string.rb

Overview

This is a command which should be run

Instance Method Summary collapse

Constructor Details

#initialize(command, *arguments) ⇒ UnixCommandString

Returns a new instance of UnixCommandString.



12
13
14
15
# File 'lib/aruba/platforms/unix_command_string.rb', line 12

def initialize(command, *arguments)
  @command = command
  @arguments = arguments
end

Instance Method Details

#to_aObject

Convert to array



18
19
20
# File 'lib/aruba/platforms/unix_command_string.rb', line 18

def to_a
  [@command, *@arguments]
end