mirror of
https://github.com/saltstack-formulas/sysctl-formula.git
synced 2026-09-13 04:35:20 +02:00
chore(copier): update template https://github.com/dafyddj/copier-ssf-ci to v2.11.11
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
# Author: Daniel Dehennin <daniel.dehennin@ac-dijon.fr>
|
||||
# Copyright (C) 2020 Daniel Dehennin <daniel.dehennin@ac-dijon.fr>
|
||||
|
||||
<<<<<<< before updating
|
||||
# rubocop:disable Metrics/ClassLength
|
||||
=======
|
||||
# rubocop:disable-next Metrics/ClassLength
|
||||
>>>>>>> after updating
|
||||
class SystemResource < Inspec.resource(1)
|
||||
name 'system'
|
||||
|
||||
@@ -47,7 +51,11 @@ class SystemResource < Inspec.resource(1)
|
||||
end
|
||||
end
|
||||
|
||||
<<<<<<< before updating
|
||||
# rubocop:disable Metrics/MethodLength,Metrics/AbcSize,Metrics/CyclomaticComplexity
|
||||
=======
|
||||
# rubocop:disable-next Metrics/MethodLength,Metrics/AbcSize,Metrics/CyclomaticComplexity
|
||||
>>>>>>> after updating
|
||||
def build_platform_release
|
||||
case inspec.platform[:name]
|
||||
when 'amazon'
|
||||
@@ -60,9 +68,15 @@ class SystemResource < Inspec.resource(1)
|
||||
when 'mac_os_x'
|
||||
inspec.command('sw_vers -productVersion').stdout.to_s
|
||||
when 'opensuse'
|
||||
<<<<<<< before updating
|
||||
# rubocop:disable Style/NumericLiterals,Layout/LineLength
|
||||
inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release]
|
||||
# rubocop:enable Style/NumericLiterals,Layout/LineLength
|
||||
=======
|
||||
release = inspec.platform[:release]
|
||||
# rubocop:disable-next Style/NumericLiterals
|
||||
release.to_i > 20210101 ? 'tumbleweed' : release
|
||||
>>>>>>> after updating
|
||||
when 'windows_8.1_pro'
|
||||
'8.1'
|
||||
when 'windows_server_2022_datacenter'
|
||||
@@ -75,7 +89,10 @@ class SystemResource < Inspec.resource(1)
|
||||
inspec.platform[:release]
|
||||
end
|
||||
end
|
||||
<<<<<<< before updating
|
||||
# rubocop:enable Metrics/MethodLength,Metrics/AbcSize,Metrics/CyclomaticComplexity
|
||||
=======
|
||||
>>>>>>> after updating
|
||||
|
||||
def derive_gentoo_init_system
|
||||
inspec.command('systemctl').exist? ? 'sysd' : 'sysv'
|
||||
@@ -94,7 +111,11 @@ class SystemResource < Inspec.resource(1)
|
||||
end
|
||||
end
|
||||
|
||||
<<<<<<< before updating
|
||||
# rubocop:disable Metrics/MethodLength,Metrics/CyclomaticComplexity
|
||||
=======
|
||||
# rubocop:disable-next Metrics/MethodLength,Metrics/CyclomaticComplexity
|
||||
>>>>>>> after updating
|
||||
def build_platform_codename
|
||||
case build_platform_finger
|
||||
when 'ubuntu-22.04'
|
||||
@@ -133,6 +154,10 @@ class SystemResource < Inspec.resource(1)
|
||||
''
|
||||
end
|
||||
end
|
||||
<<<<<<< before updating
|
||||
# rubocop:enable Metrics/MethodLength,Metrics/CyclomaticComplexity
|
||||
end
|
||||
# rubocop:enable Metrics/ClassLength
|
||||
=======
|
||||
end
|
||||
>>>>>>> after updating
|
||||
|
||||
Reference in New Issue
Block a user