|
|
|
|
|
|
|
|
'base-latest' |
|
|
'base-latest' |
|
|
when 'gentoo' |
|
|
when 'gentoo' |
|
|
"#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}" |
|
|
"#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}" |
|
|
|
|
|
when 'mac_os_x' |
|
|
|
|
|
inspec.command('sw_vers -productVersion').stdout.to_s |
|
|
when 'opensuse' |
|
|
when 'opensuse' |
|
|
# rubocop:disable Style/NumericLiterals,Layout/LineLength |
|
|
# rubocop:disable Style/NumericLiterals,Layout/LineLength |
|
|
inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release] |
|
|
inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release] |