Class: Processing::HostOS
- Inherits:
-
Object
- Object
- Processing::HostOS
- Defined in:
- lib/jruby_art/config.rb
Overview
This class knows about supported JRubyArt operating systems
Class Method Summary collapse
Class Method Details
.os ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/jruby_art/config.rb', line 28 def self.os detect_os = RbConfig::CONFIG['host_os'] case detect_os when /mac|darwin/ then :mac when /gnueabihf/ then :arm when /linux/ then :linux when /solaris|bsd/ then :unix else WIN_PATTERNS.find { |reg| detect_os =~ reg } raise "unsupported os: #{detect_os.inspect}" if Regexp.last_match.nil? :windows end end |