class RuboCop::Cop::Chef::Ruby::LegacyPowershellOutMethods
Use powershell_exec!/powershell_exec instead of powershell_out!/powershell_out. The new methods don’t spawn 2 shells per shellout and instead use .NET bindings to call PS directly.
Constants
- MSG
- RESTRICT_ON_SEND
Public Instance Methods
Source
# File lib/rubocop/cop/chefstyle/ruby/legacy_powershell_out_methods.rb, line 29 def on_send(node) add_offense(node, message: MSG, severity: :refactor) end