summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasu1105 <vasundhara.jagdale@msystechnologies.com>2016-12-29 12:55:47 +0000
committerVasu1105 <vasundhara.jagdale@msystechnologies.com>2016-12-29 12:55:47 +0000
commit4fcbad8d41d025d28f9fe4e81cdd6a3352c5e6e5 (patch)
tree925869ccf50924b993e474a161ddc5590754f0cb
parent5f74da62d3e3290cfa8a4fcfa2617be2a8bb4048 (diff)
downloadchef-4fcbad8d41d025d28f9fe4e81cdd6a3352c5e6e5.tar.gz
Fixed rubocop style issues
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 61b9074e97..37ea284a45 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), {:returns => 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), {:returns => 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), {:returns => 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), {:returns => 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), {:returns => 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