Sha256: 203b97424a9b48dad2d36016fd5c85fd5bf806dd90934fcfe0d70d115fa279f6
Contents?: true
Size: 1021 Bytes
Versions: 4
Compression:
Stored size: 1021 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 include Contrast::Components::Interface access_component :config, :settings def enabled? @_enabled = !false?(CONFIG.root.inventory.enable) if @_enabled.nil? @_enabled end def analyze_libraries? @_analyze_libraries = !false?(CONFIG.root.inventory.analyze_libraries) if @_analyze_libraries.nil? @_analyze_libraries end end COMPONENT_INTERFACE = Interface.new end end end
Version data entries
4 entries across 4 versions & 1 rubygems