Class: Inspec::Resources::ServiceManager

Inherits:
Object
  • Object
show all
Defined in:
lib/resources/service.rb

Direct Known Subclasses

BSDInit, LaunchCtl, Runit, SrcMstr, Svcs, SysV, Systemd, Upstart, WindowsSrv

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(inspec, service_ctl = nil) ⇒ ServiceManager

Returns a new instance of ServiceManager.



185
186
187
188
# File 'lib/resources/service.rb', line 185

def initialize(inspec, service_ctl = nil)
  @inspec = inspec
  @service_ctl ||= service_ctl
end

Instance Attribute Details

#inspecObject (readonly)

Returns the value of attribute inspec.



184
185
186
# File 'lib/resources/service.rb', line 184

def inspec
  @inspec
end

#service_ctlObject (readonly)

Returns the value of attribute service_ctl.



184
185
186
# File 'lib/resources/service.rb', line 184

def service_ctl
  @service_ctl
end