Skip to content

Commit

Permalink
Merge duplicate branches in service_provider fact
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Jun 21, 2024
1 parent 68a0e9c commit a43060a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/voxpupuli/test/facts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,16 @@ def add_stdlib_facts
add_custom_fact :service_provider, ->(_os, facts) do
os = RSpec.configuration.facterdb_string_keys ? facts['os'] : facts[:os]
case os['family'].downcase
when 'archlinux'
when 'archlinux', 'debian', 'redhat'
'systemd'
when 'darwin'
'launchd'
when 'debian'
'systemd'
when 'freebsd'
'freebsd'
when 'gentoo'
'openrc'
when 'openbsd'
'openbsd'
when 'redhat'
'systemd'
when 'suse'
os['release']['major'].to_i >= 12 ? 'systemd' : 'redhat'
when 'windows'
Expand Down

0 comments on commit a43060a

Please sign in to comment.