mirror of
https://github.com/inspec/inspec
synced 2024-11-11 07:34:15 +00:00
Refactor some of resources/service.rb
Starting with: normalizing a huge if in select_service_mgmt to only use strings. Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
d013ac1e47
commit
8f4bac23eb
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ module Inspec::Resources
|
|||
SysV.new(inspec, service_ctl)
|
||||
elsif %w{mac_os_x}.include?(platform)
|
||||
LaunchCtl.new(inspec, service_ctl)
|
||||
elsif os.windows?
|
||||
elsif %w{windows}.include?(platform)
|
||||
WindowsSrv.new(inspec)
|
||||
elsif %w{freebsd}.include?(platform)
|
||||
BSDInit.new(inspec, service_ctl)
|
||||
|
@ -170,7 +170,7 @@ module Inspec::Resources
|
|||
else
|
||||
Systemd.new(inspec, service_ctl)
|
||||
end
|
||||
elsif os.solaris?
|
||||
elsif %w{solaris smartos omnios openindiana opensolaris nexentacore}.include?(platform)
|
||||
Svcs.new(inspec)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue