summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/windows
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-01-13 11:44:32 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-01-13 11:44:32 -0800
commitaf4afcc712d24dbc85a9c020a124acadeed295d2 (patch)
tree08a71e81175177fee945d09bb831d5ae37a24606 /lib/chef/provider/package/windows
parent1edd3dba71b4531bb1a570dd7e387620e8ee61de (diff)
downloadchef-af4afcc712d24dbc85a9c020a124acadeed295d2.tar.gz
autocorrecting Style/TrailingCommalcg/trailing_comma
chefstyle -a fixed 1044 occurrances
Diffstat (limited to 'lib/chef/provider/package/windows')
-rw-r--r--lib/chef/provider/package/windows/exe.rb4
-rw-r--r--lib/chef/provider/package/windows/registry_uninstall_entry.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/package/windows/exe.rb b/lib/chef/provider/package/windows/exe.rb
index 8f6cd1efa5..f21106f2ff 100644
--- a/lib/chef/provider/package/windows/exe.rb
+++ b/lib/chef/provider/package/windows/exe.rb
@@ -61,7 +61,7 @@ class Chef
"\"#{new_resource.source}\"",
unattended_flags,
expand_options(new_resource.options),
- "& exit %%%%ERRORLEVEL%%%%"
+ "& exit %%%%ERRORLEVEL%%%%",
].join(" "), timeout: new_resource.timeout, returns: new_resource.returns
)
end
@@ -86,7 +86,7 @@ class Chef
::File.basename(uninstall_string),
expand_options(new_resource.options),
" ",
- unattended_flags
+ unattended_flags,
].join
%Q{start "" /wait #{uninstall_string} & exit %%%%ERRORLEVEL%%%%}
end
diff --git a/lib/chef/provider/package/windows/registry_uninstall_entry.rb b/lib/chef/provider/package/windows/registry_uninstall_entry.rb
index a63e09c6bd..2c3f6ba093 100644
--- a/lib/chef/provider/package/windows/registry_uninstall_entry.rb
+++ b/lib/chef/provider/package/windows/registry_uninstall_entry.rb
@@ -31,7 +31,7 @@ class Chef
[
[::Win32::Registry::HKEY_LOCAL_MACHINE, (::Win32::Registry::Constants::KEY_READ | 0x0100)],
[::Win32::Registry::HKEY_LOCAL_MACHINE, (::Win32::Registry::Constants::KEY_READ | 0x0200)],
- [::Win32::Registry::HKEY_CURRENT_USER]
+ [::Win32::Registry::HKEY_CURRENT_USER],
].each do |hkey|
desired = hkey.length > 1 ? hkey[1] : ::Win32::Registry::Constants::KEY_READ
begin