Method: App::UtilsTools.os
- Defined in:
- lib/core/utils_tools.rb
.os ⇒ Object
Get the operating system.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/core/utils_tools.rb', line 63 def self.os @os ||= ( host_os = RbConfig::CONFIG['host_os'] case host_os when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ OS_WINDOWS when /darwin|mac os/ OS_MAC when /linux/ OS_LINUX when /solaris|bsd/ OS_UNIX else OS_OTHER end ) end |