Class: Bosh::Stemcell::Arch

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/stemcell/arch.rb

Class Method Summary collapse

Class Method Details

.archObject


4
5
6
# File 'lib/bosh/stemcell/arch.rb', line 4

def self.arch
  RbConfig::CONFIG['host_cpu']
end

.ppc64le?Boolean

Returns:

  • (Boolean)

8
9
10
# File 'lib/bosh/stemcell/arch.rb', line 8

def self.ppc64le?
  arch == 'powerpc64le'
end

.x86_64?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/bosh/stemcell/arch.rb', line 12

def self.x86_64?
  arch == 'x86_64'
end