Class: Inspec::Resources::ServiceManager
- Inherits:
- 
      Object
      
        - Object
- Inspec::Resources::ServiceManager
 
- Defined in:
- lib/inspec/resources/service.rb
Direct Known Subclasses
BSDInit, LaunchCtl, Runit, SrcMstr, Svcs, SysV, Systemd, Upstart, WindowsSrv
Instance Attribute Summary collapse
- 
  
    
      #inspec  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute inspec. 
- 
  
    
      #service_ctl  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute service_ctl. 
Instance Method Summary collapse
- 
  
    
      #initialize(inspec, service_ctl = nil)  ⇒ ServiceManager 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ServiceManager. 
Constructor Details
#initialize(inspec, service_ctl = nil) ⇒ ServiceManager
Returns a new instance of ServiceManager.
| 255 256 257 258 | # File 'lib/inspec/resources/service.rb', line 255 def initialize(inspec, service_ctl = nil) @inspec = inspec @service_ctl ||= service_ctl end | 
Instance Attribute Details
#inspec ⇒ Object (readonly)
Returns the value of attribute inspec.
| 254 255 256 | # File 'lib/inspec/resources/service.rb', line 254 def inspec @inspec end | 
#service_ctl ⇒ Object (readonly)
Returns the value of attribute service_ctl.
| 254 255 256 | # File 'lib/inspec/resources/service.rb', line 254 def service_ctl @service_ctl end |