Class: Inspec::Resources::ServiceManager

Inherits:
Object
  • Object
show all
Defined in:
lib/inspec/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.



270
271
272
273
# File 'lib/inspec/resources/service.rb', line 270

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

Instance Attribute Details

#inspecObject (readonly)

Returns the value of attribute inspec.



269
270
271
# File 'lib/inspec/resources/service.rb', line 269

def inspec
  @inspec
end

#service_ctlObject (readonly)

Returns the value of attribute service_ctl.



269
270
271
# File 'lib/inspec/resources/service.rb', line 269

def service_ctl
  @service_ctl
end