Module: Chef::Sugar::Architecture
Instance Method Summary collapse
-
#_32_bit?(node) ⇒ Boolean
(also: #i386?)
Determine if the current architecture is 32-bit.
-
#_64_bit?(node) ⇒ Boolean
Determine if the current architecture is 64-bit.
Instance Method Details
#_32_bit?(node) ⇒ Boolean Also known as: i386?
TODO:
Make this more than “not 64-bit”
Determine if the current architecture is 32-bit
39 40 41 |
# File 'lib/chef/sugar/architecture.rb', line 39 def _32_bit?(node) !_64_bit?(node) end |
#_64_bit?(node) ⇒ Boolean
Determine if the current architecture is 64-bit
27 28 29 30 |
# File 'lib/chef/sugar/architecture.rb', line 27 def _64_bit?(node) %w(amd64 x86_64 ppc64 s390x ia64 sparc64 aarch64 arch64 arm64) .include?(node['kernel']['machine']) end |