File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2019-10-18 11:01:56 -0500 using RuboCop version 0.49.1.
3+ # on 2019-10-30 10:31:01 -0500 using RuboCop version 0.49.1.
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
77# versions of RuboCop, may require this file to be generated again.
88
9- # Offense count: 4
9+ # Offense count: 6
1010GetText/DecorateFunctionMessage :
1111 Exclude :
1212 - ' lib/puppet/provider/exec/powershell.rb'
1313 - ' lib/puppet/provider/exec/pwsh.rb'
1414 - ' spec/spec_helper_acceptance.rb'
1515
16- # Offense count: 1
16+ # Offense count: 3
1717GetText/DecorateString :
1818 Exclude :
1919 - ' lib/puppet/provider/exec/powershell.rb'
20+ - ' lib/puppet/provider/exec/pwsh.rb'
Original file line number Diff line number Diff line change 11require 'puppet/provider/exec'
2- require 'ruby-pwsh'
2+ begin
3+ require 'ruby-pwsh'
4+ rescue LoadError
5+ raise 'Could not load the "ruby-pwsh" library; is the dependency module puppetlabs-pwshlib installed in this environment?'
6+ end
37
48Puppet ::Type . type ( :exec ) . provide :powershell , :parent => Puppet ::Provider ::Exec do
59 confine :operatingsystem => :windows
Original file line number Diff line number Diff line change 11require 'puppet/provider/exec'
2- require 'ruby-pwsh'
2+ begin
3+ require 'ruby-pwsh'
4+ rescue LoadError
5+ raise 'Could not load the "ruby-pwsh" library; is the dependency module puppetlabs-pwshlib installed in this environment?'
6+ end
37
48Puppet ::Type . type ( :exec ) . provide :pwsh , :parent => Puppet ::Provider ::Exec do
59 desc <<-EOT
You can’t perform that action at this time.
0 commit comments