mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-27 20:27:53 +01:00
test(system.rb): add support for mac_os_x
[skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/442
This commit is contained in:
parent
18a6230856
commit
e8a1237632
@ -21,4 +21,5 @@ supports:
|
||||
- platform-name: gentoo
|
||||
- platform-name: almalinux
|
||||
- platform-name: rocky
|
||||
- platform-name: mac_os_x
|
||||
- platform: windows
|
||||
|
@ -57,6 +57,8 @@ class SystemResource < Inspec.resource(1)
|
||||
'base-latest'
|
||||
when 'gentoo'
|
||||
"#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}"
|
||||
when 'mac_os_x'
|
||||
inspec.command('sw_vers -productVersion').stdout.to_s
|
||||
when 'opensuse'
|
||||
# rubocop:disable Style/NumericLiterals,Layout/LineLength
|
||||
inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release]
|
||||
|
Loading…
Reference in New Issue
Block a user