lib/contrast/components/inventory.rb in contrast-agent-3.16.0 vs lib/contrast/components/inventory.rb in contrast-agent-4.0.0
- old
+ new
@@ -11,14 +11,19 @@
# product.
class Interface
include Contrast::Components::ComponentBase
include Contrast::Components::Interface
- access_component :config
+ 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