class RuboCop::Cop::Chef::Modernize::DependsOnWindowsFirewallCookbook
Don’t depend on the windows_firewall cookbook made obsolete by Chef
Infra Client 14.7. The windows_firewall resource is now included in Chef
Infra Client itself.
@example
#### incorrect depends 'windows_firewall'
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/cop/chef/modernize/depends_windows_firewall_cookbook.rb, line 43 def on_send(node) legacy_depends?(node) do add_offense(node, severity: :refactor) do |corrector| corrector.remove(range_with_surrounding_space(range: node.loc.expression, side: :left)) end end end