Class: Aruba::Platforms::WindowsCommandString

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

Overview

This is a command which should be run

Instance Method Summary collapse

Constructor Details

#initialize(command, *arguments) ⇒ WindowsCommandString

Returns a new instance of WindowsCommandString.



9
10
11
12
# File 'lib/aruba/platforms/windows_command_string.rb', line 9

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

Instance Method Details

#to_aObject

Convert to array



15
16
17
# File 'lib/aruba/platforms/windows_command_string.rb', line 15

def to_a
  [@command, *@arguments]
end