class SystemUtils
Class containing system utility funcions.
Public Instance Methods
Source
# File lib/ceedling/system_utils.rb, line 23 def setup @tcsh_shell = nil end
Sets up the class.
Source
# File lib/ceedling/system_utils.rb, line 29 def tcsh_shell? # once run a single time, return state determined at that execution return @tcsh_shell unless @tcsh_shell.nil? result = @system_wrapper.shell_backticks(command:'echo $version') if ((result[:exit_code] == 0) and (result[:output].strip =~ /^tcsh/)) @tcsh_shell = true else @tcsh_shell = false end return @tcsh_shell end
Checks the system shell to see if it a tcsh shell.