Top Level Namespace
Defined Under Namespace
Modules: Xanthus
Instance Method Summary collapse
Instance Method Details
#os_family ⇒ Object
1 2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/utils/os.rb', line 1 def os_family case RUBY_PLATFORM when /ix/i, /ux/i, /gnu/i, /sysv/i, /solaris/i, /sunos/i, /bsd/i "unix" when /win/i, /ming/i "windows" else "others" end end |
#sys_script_ext ⇒ Object
14 15 16 |
# File 'lib/utils/os.rb', line 14 def sys_script_ext os_family == 'unix' ? 'sh' : 'cmd' end |