class HyperbuildLoader

Public Class Methods

lib_path() click to toggle source
# File lib/hyperbuild.rb, line 13
def self.lib_path
  File.join(__dir__, [operating_system, '-ruby', RUBY_VERSION.split('.')[0...-1].join('.')].join(''))
end
operating_system() click to toggle source
# File lib/hyperbuild.rb, line 4
def self.operating_system
  case RbConfig::CONFIG['host_os'].downcase
  when /linux|bsd|solaris/ then 'linux'
  when /darwin/ then 'macos'
  when /mingw|mswin/ then 'windows'
  else 'unknown'
  end
end