Class: Inspec::Resources::SrcMstr
- Inherits:
-
ServiceManager
- Object
- ServiceManager
- Inspec::Resources::SrcMstr
- Defined in:
- lib/resources/service.rb
Overview
AIX services
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from ServiceManager
Instance Method Summary collapse
Methods inherited from ServiceManager
Constructor Details
This class inherits a constructor from Inspec::Resources::ServiceManager
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
232 233 234 |
# File 'lib/resources/service.rb', line 232 def name @name end |
Instance Method Details
#info(service_name) ⇒ Object
234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/resources/service.rb', line 234 def info(service_name) @name = service_name running = status? return nil if running.nil? { name: service_name, description: nil, installed: true, running: running, enabled: enabled?, type: 'srcmstr', } end |