diff options
Diffstat (limited to 'lib/chef/provider/package/windows')
-rw-r--r-- | lib/chef/provider/package/windows/exe.rb | 10 | ||||
-rw-r--r-- | lib/chef/provider/package/windows/msi.rb | 4 | ||||
-rw-r--r-- | lib/chef/provider/package/windows/registry_uninstall_entry.rb | 10 |
3 files changed, 12 insertions, 12 deletions
diff --git a/lib/chef/provider/package/windows/exe.rb b/lib/chef/provider/package/windows/exe.rb index f21106f2ff..e510755281 100644 --- a/lib/chef/provider/package/windows/exe.rb +++ b/lib/chef/provider/package/windows/exe.rb @@ -17,7 +17,7 @@ # limitations under the License. # -require 'chef/mixin/shell_out' +require "chef/mixin/shell_out" class Chef class Provider @@ -101,13 +101,13 @@ class Chef def unattended_flags case installer_type when :installshield - '/s /sms' + "/s /sms" when :nsis - '/S /NCRC' + "/S /NCRC" when :inno - '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART' + "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART" when :wise - '/s' + "/s" end end end diff --git a/lib/chef/provider/package/windows/msi.rb b/lib/chef/provider/package/windows/msi.rb index 15b00f46f0..106dc496b6 100644 --- a/lib/chef/provider/package/windows/msi.rb +++ b/lib/chef/provider/package/windows/msi.rb @@ -18,8 +18,8 @@ # TODO: Allow @new_resource.source to be a Product Code as a GUID for uninstall / network install -require 'chef/win32/api/installer' if (RUBY_PLATFORM =~ /mswin|mingw32|windows/) && Chef::Platform.supports_msi? -require 'chef/mixin/shell_out' +require "chef/win32/api/installer" if (RUBY_PLATFORM =~ /mswin|mingw32|windows/) && Chef::Platform.supports_msi? +require "chef/mixin/shell_out" class Chef class Provider diff --git a/lib/chef/provider/package/windows/registry_uninstall_entry.rb b/lib/chef/provider/package/windows/registry_uninstall_entry.rb index 2c3f6ba093..145f799e05 100644 --- a/lib/chef/provider/package/windows/registry_uninstall_entry.rb +++ b/lib/chef/provider/package/windows/registry_uninstall_entry.rb @@ -17,7 +17,7 @@ # limitations under the License. # -require 'win32/registry' if (RUBY_PLATFORM =~ /mswin|mingw32|windows/) +require "win32/registry" if (RUBY_PLATFORM =~ /mswin|mingw32|windows/) class Chef class Provider @@ -39,7 +39,7 @@ class Chef reg.each_key do |key, _wtime| begin entry = reg.open(key, desired) - display_name = read_registry_property(entry, 'DisplayName') + display_name = read_registry_property(entry, "DisplayName") if display_name == package_name entries.push(RegistryUninstallEntry.new(hkey, key, entry)) end @@ -67,9 +67,9 @@ class Chef @hive = hive @key = key @data = registry_data - @display_name = RegistryUninstallEntry.read_registry_property(registry_data, 'DisplayName') - @display_version = RegistryUninstallEntry.read_registry_property(registry_data, 'DisplayVersion') - @uninstall_string = RegistryUninstallEntry.read_registry_property(registry_data, 'UninstallString') + @display_name = RegistryUninstallEntry.read_registry_property(registry_data, "DisplayName") + @display_version = RegistryUninstallEntry.read_registry_property(registry_data, "DisplayVersion") + @uninstall_string = RegistryUninstallEntry.read_registry_property(registry_data, "UninstallString") end attr_reader :hive |