class RuboCop::Cop::Chef::Deprecations::EOLAuditModeUsage
The beta Audit Mode for Chef
Infra Client was removed in Chef
Infra Client 15.0. Users should instead use InSpec
and the audit cookbook or the Compliance Phase introduced in Chef
Infra Client 17. See www.inspec.io/ for more information.
@example
#### incorrect control_group 'Baseline' do control 'SSH' do it 'should be listening on port 22' do expect(port(22)).to be_listening end end end
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/cop/chef/deprecation/eol_audit_mode.rb, line 40 def on_send(node) control_group?(node) do add_offense(node.loc.selector, severity: :warning) end end