class RuboCop::Cop::Chef::Effortless::CookbookUsesDatabags
Data bags cannot be used with the Effortless
Infra pattern
@example
#### incorrect data_bag_item('admins', login) data_bag(data_bag_name)
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/cop/chef/effortless/data_bags.rb, line 33 def on_send(node) add_offense(node, message: MSG, severity: :refactor) end