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.



313
314
315
316
# File 'lib/inspec/resources/service.rb', line 313

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

Instance Attribute Details

#inspecObject (readonly)

Returns the value of attribute inspec.



312
313
314
# File 'lib/inspec/resources/service.rb', line 312

def inspec
  @inspec
end

#service_ctlObject (readonly)

Returns the value of attribute service_ctl.



312
313
314
# File 'lib/inspec/resources/service.rb', line 312

def service_ctl
  @service_ctl
end