Class: Inspec::Resources::ServiceManager
- Inherits:
-
Object
- Object
- Inspec::Resources::ServiceManager
- Defined in:
- lib/inspec/resources/service.rb
Direct Known Subclasses
BSDInit, FreeBSD10Init, LaunchCtl, Runit, SrcMstr, Svcs, SysV, Systemd, Upstart, WindowsSrv
Instance Attribute Summary collapse
-
#inspec ⇒ Object
readonly
Returns the value of attribute inspec.
-
#service_ctl ⇒ Object
readonly
Returns the value of attribute service_ctl.
Instance Method Summary collapse
-
#initialize(inspec, service_ctl = nil) ⇒ ServiceManager
constructor
A new instance of ServiceManager.
Constructor Details
#initialize(inspec, service_ctl = nil) ⇒ ServiceManager
Returns a new instance of ServiceManager.
313 314 315 316 |
# File 'lib/inspec/resources/service.rb', line 313 def initialize(inspec, service_ctl = nil) @inspec = inspec @service_ctl ||= service_ctl end |
Instance Attribute Details
#inspec ⇒ Object (readonly)
Returns the value of attribute inspec.
312 313 314 |
# File 'lib/inspec/resources/service.rb', line 312 def inspec @inspec end |
#service_ctl ⇒ Object (readonly)
Returns the value of attribute service_ctl.
312 313 314 |
# File 'lib/inspec/resources/service.rb', line 312 def service_ctl @service_ctl end |