class Bindeps::System

Public Class Methods

arch() click to toggle source
# File lib/bindeps.rb, line 225
def self.arch
  Gem::Platform.local.cpu == 'x86_64' ? '64bit' : '32bit'
end
os() click to toggle source
# File lib/bindeps.rb, line 206
def self.os
  (
    host_os = RbConfig::CONFIG['host_os']
    case host_os
    when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
      :windows
    when /darwin|mac os/
      :macosx
    when /linux/
      :linux
    when /solaris|bsd/
      :unix
    else
      raise UnsupportedSystemError,
            "can't install #{@name}, unknown os: #{host_os.inspect}"
    end
  )
end