lib/rubocop/cop/chef/deprecation/run_command_helper.rb in cookstyle-7.32.2 vs lib/rubocop/cop/chef/deprecation/run_command_helper.rb in cookstyle-7.32.7
- old
+ new
@@ -21,17 +21,17 @@
module Deprecations
# Use 'shell_out!' instead of the legacy 'run_command' or 'run_command_with_systems_locale' helpers for shelling out. The run_command helper was removed in Chef Infra Client 13.
#
# @example
#
- # #### incorrect
+ # ### incorrect
# require 'chef/mixin/command'
# include Chef::Mixin::Command
#
# run_command('/bin/foo')
# run_command_with_systems_locale('/bin/foo')
#
- # #### correct
+ # ### correct
# shell_out!('/bin/foo')
#
class UsesRunCommandHelper < Base
MSG = "Use 'shell_out!' instead of the legacy 'run_command' or 'run_command_with_systems_locale' helpers for shelling out. The run_command helper was removed in Chef Infra Client 13."
RESTRICT_ON_SEND = [:require, :run_command, :run_command_with_systems_locale, :include].freeze