Class: Checkpoint::Platform

Inherits:
Object
  • Object
show all
Defined in:
lib/checkpoint/platform.rb

Class Method Summary collapse

Class Method Details

.archObject



8
9
10
11
12
13
14
# File 'lib/checkpoint/platform.rb', line 8

def self.arch
  if ["x86_64", "amd64"].include?(RbConfig::CONFIG["host_cpu"])
    return "amd64"
  end

  return "386"
end

.osObject



16
17
18
# File 'lib/checkpoint/platform.rb', line 16

def self.os
  RbConfig::CONFIG["host_os"].downcase
end