Module: AwsRunAs::Utils
- Defined in:
- lib/aws_runas/utils.rb
Overview
Utility functions that aren’t specifically tied to a class.
Class Method Summary collapse
-
.shell ⇒ Object
load the shell for a specific operating system.
Class Method Details
.shell ⇒ Object
load the shell for a specific operating system. if $SHELL exists, load that.
22 23 24 25 26 27 28 29 30 |
# File 'lib/aws_runas/utils.rb', line 22 def self.shell if RbConfig::CONFIG['host_os'] =~ /mswin|windows|mingw32/i 'cmd.exe' elsif ENV.include?('SHELL') ENV['SHELL'] else '/bin/sh' end end |