Class: Aruba::Platforms::WindowsCommandString

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

Overview

This is a command which should be run

This adds cmd.exec in front of commmand

Instance Method Summary collapse

Instance Method Details

#to_aObject

Convert to array



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

def to_a
  [cmd_path, '/c', __getobj__]
end

#to_sObject Also known as: inspect



19
20
21
# File 'lib/aruba/platforms/windows_command_string.rb', line 19

def to_s
  __getobj__.to_s
end