Sha256: ab9a4abef7addc98bf1667b66dc8fcd21600786ecada1e92b45c79f8f1395f5f

Contents?: true

Size: 682 Bytes

Versions: 8

Compression:

Stored size: 682 Bytes

Contents

# Copyright (c) 2020 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?
          state.inventory_enabled?
        end
      end

      COMPONENT_INTERFACE = Interface.new
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
contrast-agent-3.11.0 lib/contrast/components/inventory.rb
contrast-agent-3.10.2 lib/contrast/components/inventory.rb
contrast-agent-3.10.1 lib/contrast/components/inventory.rb
contrast-agent-3.10.0 lib/contrast/components/inventory.rb
contrast-agent-3.9.1 lib/contrast/components/inventory.rb
contrast-agent-3.9.0 lib/contrast/components/inventory.rb
contrast-agent-3.8.5 lib/contrast/components/inventory.rb
contrast-agent-3.8.4 lib/contrast/components/inventory.rb