Sha256: 618fadd482d9e98fda26f1a5cc9ce7da81602ca69f07f467976dc38e46286300

Contents?: true

Size: 909 Bytes

Versions: 9

Compression:

Stored size: 909 Bytes

Contents

# Copyright (c) 2021 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

module Contrast
  module Components
    module Inventory
      # 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.
      class Interface
        include Contrast::Components::ComponentBase

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
contrast-agent-4.14.1 lib/contrast/components/inventory.rb
contrast-agent-4.14.0 lib/contrast/components/inventory.rb
contrast-agent-4.13.1 lib/contrast/components/inventory.rb
contrast-agent-4.13.0 lib/contrast/components/inventory.rb
contrast-agent-4.12.0 lib/contrast/components/inventory.rb
contrast-agent-4.11.0 lib/contrast/components/inventory.rb
contrast-agent-4.10.0 lib/contrast/components/inventory.rb
contrast-agent-4.9.1 lib/contrast/components/inventory.rb
contrast-agent-4.9.0 lib/contrast/components/inventory.rb