Class: ServiceManager
- Inherits:
-
Object
- Object
- ServiceManager
- Defined in:
- lib/resources/service.rb
Direct Known Subclasses
BSDInit, 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.
182 183 184 185 |
# File 'lib/resources/service.rb', line 182 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.
181 182 183 |
# File 'lib/resources/service.rb', line 181 def inspec @inspec end |
#service_ctl ⇒ Object (readonly)
Returns the value of attribute service_ctl.
181 182 183 |
# File 'lib/resources/service.rb', line 181 def service_ctl @service_ctl end |