summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/windows/registry_uninstall_entry.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-01-14 14:08:03 +0000
committerThom May <thom@chef.io>2016-01-14 14:08:03 +0000
commit51cfbdc4d16739caac4d946fadbe678444aafe34 (patch)
tree56dfd8f1cd9fd933de27268b32402e955a43ac2b /lib/chef/provider/package/windows/registry_uninstall_entry.rb
parent05064423057d4cf46f4713b81b08829cf6d20af6 (diff)
downloadchef-51cfbdc4d16739caac4d946fadbe678444aafe34.tar.gz
Use double quotes by default
This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
Diffstat (limited to 'lib/chef/provider/package/windows/registry_uninstall_entry.rb')
-rw-r--r--lib/chef/provider/package/windows/registry_uninstall_entry.rb10
1 files changed, 5 insertions, 5 deletions
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