Exception: CemAcpt::Scan::LicenseNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- CemAcpt::Scan::LicenseNotFoundError
- Defined in:
- lib/cem_acpt/scan/errors.rb
Overview
Raised when ‘cem_acpt_scan.cis_cat_pro_license` is unset (or empty) and any test case in the run resolves to scanner `ciscat`. The license is required for CIS-CAT Pro and is separate from the assessor bundle so that license rotation does not require rebundling the assessor. The message carries the missing config key so the operator can fix it without re-running.
Instance Method Summary collapse
-
#initialize(config_key = 'cem_acpt_scan.cis_cat_pro_license') ⇒ LicenseNotFoundError
constructor
A new instance of LicenseNotFoundError.
Constructor Details
#initialize(config_key = 'cem_acpt_scan.cis_cat_pro_license') ⇒ LicenseNotFoundError
Returns a new instance of LicenseNotFoundError.
30 31 32 |
# File 'lib/cem_acpt/scan/errors.rb', line 30 def initialize(config_key = 'cem_acpt_scan.cis_cat_pro_license') super("CIS-CAT Pro license is required for CIS-CAT Pro scans. Set '#{config_key}' in cem_acpt config.") end |