module Ires::Os
Public Class Methods
current()
click to toggle source
Reszie image directory @return [none(ffi)]
# File lib/ires/os.rb, line 6 def current if %w[darwin linux].include?(os) os else logger.fatal "Ires is not supported by this #{os}" nil end end
Private Class Methods
os()
click to toggle source
Search OS @return [String]
# File lib/ires/os.rb, line 19 def os @os ||= begin host_os = RbConfig::CONFIG['host_os'] case host_os when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ 'windows' when /darwin|mac os/ 'darwin' when /linux/ 'linux' when /solaris|bsd/ 'unix' else 'unknown' end end end