Module: Omnibus::Sugar
- Defined in:
- lib/omnibus/sugarable.rb
Overview
This module is a wrapper for common Chef::Sugar-like functions that are common to multiple DSLs (like project and software). The extensions below will be injected into CleanRoom, and hence visible to the DSLs.
Instance Method Summary collapse
- #fips_mode? ⇒ Boolean
-
#windows_arch_i386? ⇒ Boolean
Returns whether the Windows build target is 32-bit (x86).
Instance Method Details
#fips_mode? ⇒ Boolean
63 64 65 |
# File 'lib/omnibus/sugarable.rb', line 63 def fips_mode? !!Config.fips_mode end |
#windows_arch_i386? ⇒ Boolean
Returns whether the Windows build target is 32-bit (x86). If this returns false, the target is x64. Itanium is not supported.
59 60 61 |
# File 'lib/omnibus/sugarable.rb', line 59 def windows_arch_i386? Config.windows_arch.to_sym == :x86 end |