Class: JmesPathEvaluator
- Inherits:
-
Object
- Object
- JmesPathEvaluator
- Defined in:
- lib/cfn-nag/jmes_path_evaluator.rb
Overview
THIS DOES NOT RESPECT SUPPRESSIONS!!!!!!
Instance Method Summary collapse
- #failure(id:, jmespath:, message:) ⇒ Object
-
#initialize(cfn_model) ⇒ JmesPathEvaluator
constructor
A new instance of JmesPathEvaluator.
- #violations ⇒ Object
- #warning(id:, jmespath:, message:) ⇒ Object
Constructor Details
#initialize(cfn_model) ⇒ JmesPathEvaluator
Returns a new instance of JmesPathEvaluator.
10 11 12 13 14 |
# File 'lib/cfn-nag/jmes_path_evaluator.rb', line 10 def initialize(cfn_model) @cfn_model = cfn_model @warnings = [] @failures = [] end |
Instance Method Details
#failure(id:, jmespath:, message:) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/cfn-nag/jmes_path_evaluator.rb', line 23 def failure(id:, jmespath:, message:) violation id: id, jmespath: jmespath, message: , violation_type: Violation::FAILING_VIOLATION end |
#violations ⇒ Object
30 31 32 |
# File 'lib/cfn-nag/jmes_path_evaluator.rb', line 30 def violations @warnings + @failures end |