diff options
author | Tim Smith <tsmith@chef.io> | 2018-09-07 14:37:50 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-09-07 14:37:50 -0700 |
commit | 94950242ab21af1b046518adac53b908311d7354 (patch) | |
tree | d9f550e023a9f64b72d1a382eb2c7c1fa37c54a4 /lib/chef/provider/dsc_script.rb | |
parent | 67e6a0572261f42e0d58d6079fbe2933744e8aaf (diff) | |
download | chef-powershell.tar.gz |
Properly capitalize PowerShell in descriptions and errorspowershell
It's PowerShell not Powershell. Our docs site had already been updated.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/dsc_script.rb')
-rw-r--r-- | lib/chef/provider/dsc_script.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/provider/dsc_script.rb b/lib/chef/provider/dsc_script.rb index fd20f34786..4a44a9ea23 100644 --- a/lib/chef/provider/dsc_script.rb +++ b/lib/chef/provider/dsc_script.rb @@ -63,11 +63,11 @@ class Chef err = [ "Could not find PowerShell DSC support on the system", powershell_info_str, - "Powershell 4.0 or higher was not detected on your system and is required to use the dsc_script resource.", + "PowerShell 4.0 or higher was not detected on your system and is required to use the dsc_script resource.", ] a.assertion { supports_dsc? } a.failure_message Chef::Exceptions::ProviderNotFound, err.join(" ") - a.whyrun err + ["Assuming a previous resource installs Powershell 4.0 or higher."] + a.whyrun err + ["Assuming a previous resource installs PowerShell 4.0 or higher."] a.block_action! end end @@ -175,9 +175,9 @@ class Chef def powershell_info_str if run_context && run_context.node[:languages] && run_context.node[:languages][:powershell] - install_info = "Powershell #{run_context.node[:languages][:powershell][:version]} was found on the system." + install_info = "PowerShell #{run_context.node[:languages][:powershell][:version]} was found on the system." else - install_info = "Powershell was not found." + install_info = "PowerShell was not found." end end end |