module Omnibus::Sugar
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.
Public Instance Methods
fips_mode?()
click to toggle source
# File lib/omnibus/sugarable.rb, line 63 def fips_mode? !!Config.fips_mode end
windows_arch_i386?()
click to toggle source
Returns whether the Windows build target is 32-bit (x86). If this returns false, the target is x64. Itanium is not supported.
# File lib/omnibus/sugarable.rb, line 59 def windows_arch_i386? Config.windows_arch.to_sym == :x86 end