Class: Contrast::Components::Inventory::Interface

Inherits:
Object
  • Object
show all
Includes:
ComponentBase, Contrast::Components::Interface
Defined in:
lib/contrast/components/inventory.rb

Overview

A wrapper build around the Common Agent Configuration project to allow for access of the values contained in its parent_configuration_spec.yaml. Specifically, this allows for querying the state of the Inventory product.

Instance Method Summary collapse

Methods included from Contrast::Components::Interface

included

Methods included from ComponentBase

included

Instance Method Details

#analyze_libraries?Boolean

Returns:

  • (Boolean)


23
24
25
26
# File 'lib/contrast/components/inventory.rb', line 23

def analyze_libraries?
  @_analyze_libraries = !false?(CONFIG.root.inventory.analyze_libraries) if @_analyze_libraries.nil?
  @_analyze_libraries
end

#enabled?Boolean

Returns:

  • (Boolean)


18
19
20
21
# File 'lib/contrast/components/inventory.rb', line 18

def enabled?
  @_enabled = !false?(CONFIG.root.inventory.enable) if @_enabled.nil?
  @_enabled
end