mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Merge pull request #4951 from Axuba/dev-4924
Fix service not working correctly on windows machines
This commit is contained in:
commit
5ed032a487
1 changed files with 2 additions and 2 deletions
|
@ -104,6 +104,8 @@ module Inspec::Resources
|
|||
os = inspec.os
|
||||
platform = os[:name]
|
||||
|
||||
return WindowsSrv.new(inspec) if os.windows?
|
||||
|
||||
# Ubuntu
|
||||
# @see: https://wiki.ubuntu.com/SystemdForUpstartUsers
|
||||
# Ubuntu 15.04 : Systemd
|
||||
|
@ -154,8 +156,6 @@ module Inspec::Resources
|
|||
SysV.new(inspec, service_ctl)
|
||||
when "mac_os_x"
|
||||
LaunchCtl.new(inspec, service_ctl)
|
||||
when "windows"
|
||||
WindowsSrv.new(inspec)
|
||||
when "freebsd"
|
||||
BSDInit.new(inspec, service_ctl)
|
||||
when "arch"
|
||||
|
|
Loading…
Reference in a new issue