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

Instance Method Details

#fips_mode?Boolean

Returns:

  • (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.

Returns:

  • (Boolean)


59
60
61
# File 'lib/omnibus/sugarable.rb', line 59

def windows_arch_i386?
  Config.windows_arch.to_sym == :x86
end