Class: Inspec::Resources::BSDService
- Defined in:
- lib/inspec/resources/service.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
Methods inherited from Service
#description, #enabled?, #has_start_mode?, #initialize, #installed?, #monitored_by?, #name, #params, #resource_id, #runlevels, #running?, #startmode, #startname, #to_s, #type
Constructor Details
This class inherits a constructor from Inspec::Resources::Service
Instance Method Details
#select_service_mgmt ⇒ Object
869 870 871 872 873 874 875 876 877 878 |
# File 'lib/inspec/resources/service.rb', line 869 def select_service_mgmt os = inspec.os version = os[:release].to_f if version >= 10 FreeBSD10Init.new(inspec, service_ctl) else BSDInit.new(inspec, service_ctl) end end |