Class: Inspec::Resources::ServiceManager

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(inspec, service_ctl = nil) ⇒ ServiceManager

Returns a new instance of ServiceManager.



285
286
287
288
# File 'lib/inspec/resources/service.rb', line 285

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

Instance Attribute Details

#inspecObject (readonly)

Returns the value of attribute inspec.



284
285
286
# File 'lib/inspec/resources/service.rb', line 284

def inspec
  @inspec
end

#service_ctlObject (readonly)

Returns the value of attribute service_ctl.



284
285
286
# File 'lib/inspec/resources/service.rb', line 284

def service_ctl
  @service_ctl
end