Class: Aruba::Platforms::UnixCommandString
- Inherits:
-
Object
- Object
- Aruba::Platforms::UnixCommandString
- Defined in:
- lib/aruba/platforms/unix_command_string.rb
Overview
This is a command which should be run
Instance Method Summary collapse
-
#initialize(command, *arguments) ⇒ UnixCommandString
constructor
A new instance of UnixCommandString.
-
#to_a ⇒ Object
Convert to array.
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_a ⇒ Object
Convert to array
18 19 20 |
# File 'lib/aruba/platforms/unix_command_string.rb', line 18 def to_a [@command, *@arguments] end |