Sha256: 5b87d8278f2a337704088aedaa3d7f0b7d9accd94c47c13232884c5ada4e2293

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

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

module Contrast
  module Config
    # Common Configuration settings. Those in this section pertain to the
    # inventory functionality of the Agent.
    class InventoryConfiguration < BaseConfiguration
      # @return [Array, nil] tags
      attr_accessor :tags
      attr_writer :enable, :analyze_libraries

      def initialize hsh = {}
        @enable = traverse_config(hsh, :enable)
        @analyze_libraries = traverse_config(hsh, :analyze_libraries)
        @tags = traverse_config(hsh, :tags)
      end

      # @return [Boolean, true]
      def enable
        @enable.nil? ? true : @enable
      end

      # @return [Boolean, true]
      def analyze_libraries
        @analyze_libraries.nil? ? true : @analyze_libraries
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
contrast-agent-6.0.0 lib/contrast/config/inventory_configuration.rb