Class: Inspec::Resources::SrcMstr

Inherits:
ServiceManager show all
Defined in:
lib/resources/service.rb

Overview

AIX services

Instance Attribute Summary collapse

Attributes inherited from ServiceManager

#inspec, #service_ctl

Instance Method Summary collapse

Methods inherited from ServiceManager

#initialize

Constructor Details

This class inherits a constructor from Inspec::Resources::ServiceManager

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#info(service_name) ⇒ Object



288
289
290
291
292
293
294
295
296
297
298
299
300
301
# File 'lib/resources/service.rb', line 288

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