Method: Inspec::Plugin::V2::PluginFilter#exclude?
- Defined in:
- lib/inspec/plugin/v2/filter.rb
#exclude?(plugin_name) ⇒ Boolean
18 19 20 21 22 23 24 25 |
# File 'lib/inspec/plugin/v2/filter.rb', line 18 def exclude?(plugin_name) # Currently, logic is very simple: is there an exact match? # In the future, we might add regexes on names, or exclude version ranges return false unless @filter_data[:exclude].detect { |e| e.plugin_name == plugin_name } # OK, return entire data structure. @filter_data[:exclude].detect { |e| e.plugin_name == plugin_name } end |