Sha256: 66f90fab7ebf177d48e8c8709ef68a9c2c98c8e46e65653536614b8ba868133e
Contents?: true
Size: 543 Bytes
Versions: 37
Compression:
Stored size: 543 Bytes
Contents
require 'rbconfig' module R10K module Util module Platform def self.platform # Test JRuby first to handle JRuby on Windows as well. if self.jruby? :jruby elsif self.windows? :windows else :posix end end def self.windows? RbConfig::CONFIG['host_os'] =~ /mswin|win32|dos|mingw|cygwin/i end def self.jruby? RUBY_PLATFORM == "java" end def self.posix? !windows? && !jruby? end end end end
Version data entries
37 entries across 37 versions & 1 rubygems