Class: RuboCop::Cop::Chef::Deprecations::LogResourceNotifications
- Extended by:
- TargetChefVersion
- Includes:
- RuboCop::Chef::CookbookHelpers
- Defined in:
- lib/rubocop/cop/chef/deprecation/log_resource_notifications.rb
Overview
In Chef Infra Client 16 the log resource no longer notifies when logging so notifications should not be triggered from log resources. Use the notify_group resource introduced in Chef Infra Client 15.8 instead to aggregate notifications.
Constant Summary collapse
- MSG =
'In Chef Infra Client 16 the log resource no longer notifies when logging so notifications should not be triggered from log resources. Use the notify_group resource introduced in Chef Infra Client 15.8 instead to aggregate notifications.'
Instance Method Summary collapse
Methods included from TargetChefVersion
minimum_target_chef_version, required_minimum_chef_version, support_target_chef_version?
Methods included from RuboCop::Chef::CookbookHelpers
#match_property_in_resource?, #match_resource_type?, #method_arg_ast_to_string, #resource_block_name_if_string
Methods inherited from Base
Instance Method Details
#on_block(node) ⇒ Object
54 55 56 57 58 |
# File 'lib/rubocop/cop/chef/deprecation/log_resource_notifications.rb', line 54 def on_block(node) match_property_in_resource?(:log, 'notifies', node) do |prop_node| add_offense(prop_node, severity: :warning) end end |