# File lib/chef/dsl/registry_helper.rb, line 52 def registry_data_exists?(key_path, value, architecture = :machine) registry = Chef::Win32::Registry.new(run_context, architecture) registry.data_exists?(key_path, value) end
# File lib/chef/dsl/registry_helper.rb, line 44 def registry_get_subkeys(key_path, architecture = :machine) registry = Chef::Win32::Registry.new(run_context, architecture) registry.get_subkeys(key_path) end
# File lib/chef/dsl/registry_helper.rb, line 36 def registry_get_values(key_path, architecture = :machine) registry = Chef::Win32::Registry.new(run_context, architecture) registry.get_values(key_path) end
# File lib/chef/dsl/registry_helper.rb, line 40 def registry_has_subkeys?(key_path, architecture = :machine) registry = Chef::Win32::Registry.new(run_context, architecture) registry.has_subkeys?(key_path) end
the registry instance is cheap to build and throwing it away ensures we don’t carry any state (e.g. magic 32-bit/64-bit settings) between calls
# File lib/chef/dsl/registry_helper.rb, line 32 def registry_key_exists?(key_path, architecture = :machine) registry = Chef::Win32::Registry.new(run_context, architecture) registry.key_exists?(key_path) end
# File lib/chef/dsl/registry_helper.rb, line 48 def registry_value_exists?(key_path, value, architecture = :machine) registry = Chef::Win32::Registry.new(run_context, architecture) registry.value_exists?(key_path, value) end
Generated with the Darkfish Rdoc Generator 2.