Class: Aruba::Platforms::UnixCommandString

Inherits:
SimpleDelegator
  • 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(cmd) ⇒ UnixCommandString

Returns a new instance of UnixCommandString.



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

def initialize(cmd)
  __setobj__ cmd
end

Instance Method Details

#to_aObject

Convert to array



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

def to_a
  Shellwords.split __getobj__
end

#to_sObject Also known as: inspect



20
21
22
# File 'lib/aruba/platforms/unix_command_string.rb', line 20

def to_s
  __getobj__.to_s
end