Sha256: d8c02c70d60cb5d0f369fb382bae2ab2344ee6b164e14f2b34ff4e8d6b04f2f4

Contents?: true

Size: 280 Bytes

Versions: 54

Compression:

Stored size: 280 Bytes

Contents

require "rbconfig"

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

      return "386"
    end

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

Version data entries

54 entries across 46 versions & 5 rubygems

Version Path
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/hashicorp-checkpoint-0.1.4/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/hashicorp-checkpoint-0.1.5/lib/checkpoint/platform.rb