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.



242
243
244
245
# File 'lib/resources/service.rb', line 242

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

Instance Attribute Details

#inspecObject (readonly)

Returns the value of attribute inspec.



241
242
243
# File 'lib/resources/service.rb', line 241

def inspec
  @inspec
end

#service_ctlObject (readonly)

Returns the value of attribute service_ctl.



241
242
243
# File 'lib/resources/service.rb', line 241

def service_ctl
  @service_ctl
end