summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasu1105 <vasundhara.jagdale@msystechnologies.com>2016-12-29 09:50:01 +0000
committerVasu1105 <vasundhara.jagdale@msystechnologies.com>2016-12-29 09:50:01 +0000
commitdf4ab75ed1783167d1430cf7be8d6e2544988acf (patch)
tree668ded6785b87cc9132878db9722e97da2d7caea
parent76774e2f9acdde177ac83e971ebe95a6b98f1caf (diff)
downloadchef-df4ab75ed1783167d1430cf7be8d6e2544988acf.tar.gz
Fixed typo
Signed-off-by: Vasu1105 <vasundhara.jagdale@msystechnologies.com>
-rw-r--r--lib/chef/provider/package/chocolatey.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/provider/package/chocolatey.rb b/lib/chef/provider/package/chocolatey.rb
index e5a67c5207..c51935a1ce 100644
--- a/lib/chef/provider/package/chocolatey.rb
+++ b/lib/chef/provider/package/chocolatey.rb
@@ -84,13 +84,13 @@ EOS
# choco does not support installing multiple packages with version pins
name_has_versions.each do |name, version|
- shell_out_with_timeout!(args_to_string(choco_exe, ["install -y --version", version, cmd_args, name]), {:return => new_resource.returns})
+ shell_out_with_timeout!(args_to_string(choco_exe, ["install -y --version", version, cmd_args, name]), {:returns => new_resource.returns})
end
# but we can do all the ones without version pins at once
unless name_nil_versions.empty?
cmd_names = name_nil_versions.keys
- shell_out_with_timeout!(args_to_string(choco_exe, ["install -y", cmd_args, *cmd_names]), {:return => new_resource.returns})
+ shell_out_with_timeout!(args_to_string(choco_exe, ["install -y", cmd_args, *cmd_names]), {:returns => new_resource.returns})
end
end
@@ -106,13 +106,13 @@ EOS
# choco does not support installing multiple packages with version pins
name_has_versions.each do |name, version|
- shell_out_with_timeout!(args_to_string(choco_exe, ["upgrade -y --version", version, cmd_args, name]), {:return => new_resource.returns})
+ shell_out_with_timeout!(args_to_string(choco_exe, ["upgrade -y --version", version, cmd_args, name]), {:returns => new_resource.returns})
end
# but we can do all the ones without version pins at once
unless name_nil_versions.empty?
cmd_names = name_nil_versions.keys
- shell_out_with_timeout!(args_to_string(choco_exe, ["upgrade -y", cmd_args, *cmd_names]), {:return => new_resource.returns})
+ shell_out_with_timeout!(args_to_string(choco_exe, ["upgrade -y", cmd_args, *cmd_names]), {:returns => new_resource.returns})
end
end
@@ -121,7 +121,7 @@ EOS
# @param names [Array<String>] array of package names to install
# @param versions [Array<String>] array of versions to install
def remove_package(names, versions)
- shell_out_with_timeout!(args_to_string(choco_exe, ["uninstall -y", cmd_args(include_source: false), *names]), {:return => new_resource.returns})
+ shell_out_with_timeout!(args_to_string(choco_exe, ["uninstall -y", cmd_args(include_source: false), *names]), {:returns => new_resource.returns})
end
# Support :uninstall as an action in order for users to easily convert