diff options
author | mwrock <matt@mattwrock.com> | 2020-10-01 11:09:31 -0700 |
---|---|---|
committer | mwrock <matt@mattwrock.com> | 2020-10-01 16:32:54 -0700 |
commit | 18c528980b5a1f63296d82208024006982bf97d5 (patch) | |
tree | a9fd06a071cf339b73c7a917113ae887a2339acb /lib | |
parent | 9833cc34a88ef149c8a8565880440102068345bb (diff) | |
download | chef-18c528980b5a1f63296d82208024006982bf97d5.tar.gz |
fix chefstyle and spellcheck
Signed-off-by: mwrock <matt@mattwrock.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/powershell.rb | 1 | ||||
-rw-r--r-- | lib/chef/pwsh.rb | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/powershell.rb b/lib/chef/powershell.rb index 70905ba7ba..5063e599c6 100644 --- a/lib/chef/powershell.rb +++ b/lib/chef/powershell.rb @@ -35,6 +35,7 @@ class Chef # @return [Object] output def initialize(script) raise "Chef::PowerShell can only be used on the Windows platform." unless RUBY_PLATFORM.match?(/mswin|mingw32|windows/) + @dll ||= "Chef.PowerShell.Wrapper.dll" exec(script) end diff --git a/lib/chef/pwsh.rb b/lib/chef/pwsh.rb index 817cf39e5a..d7604b4422 100644 --- a/lib/chef/pwsh.rb +++ b/lib/chef/pwsh.rb @@ -46,10 +46,10 @@ class Chef # location, we revert these variables after the script completes. original_dml = ENV["DOTNET_MULTILEVEL_LOOKUP"] original_dotnet_root = ENV["DOTNET_ROOT"] - + ENV["DOTNET_MULTILEVEL_LOOKUP"] = "0" ENV["DOTNET_ROOT"] = RbConfig::CONFIG["bindir"] - + super ensure ENV["DOTNET_MULTILEVEL_LOOKUP"] = original_dml |