class Aruba::Platforms::WindowsCommandString
This is a command which should be run
This adds `cmd.exec` in front of commmand
@private
Public Class Methods
new(cmd)
click to toggle source
# File lib/aruba/platforms/windows_command_string.rb, line 13 def initialize(cmd) __setobj__ format('%s /c "%s"', Aruba.platform.which('cmd.exe'), cmd) end
Public Instance Methods
to_a()
click to toggle source
Convert to array
# File lib/aruba/platforms/windows_command_string.rb, line 18 def to_a Shellwords.split __getobj__ end
to_s()
click to toggle source
# File lib/aruba/platforms/windows_command_string.rb, line 23 def to_s __getobj__.to_s end