Module: Vulnerability::Detected
- Defined in:
- lib/puppet_x/vulnerability/implementation/detected.rb
Overview
Implementation of puppet function vulnerability::detected
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/puppet_x/vulnerability/implementation/detected.rb', line 9 def self.included(base) base.dispatch :detected do param 'String[1]', :vulnerability_id return_type 'Boolean' end end |
Instance Method Details
#detected(vulnerability_id) ⇒ Object
16 17 18 19 20 |
# File 'lib/puppet_x/vulnerability/implementation/detected.rb', line 16 def detected(vulnerability_id) return false unless closure_scope.include?('cve_list') closure_scope['cve_list'].key?(vulnerability_id) end |