summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPrajaktaPurohit <prajakta@opscode.com>2012-12-10 14:08:49 -0800
committerLamont Granquist <lamont@opscode.com>2012-12-19 15:56:11 -0800
commit64f0f0cfc48f1b69e39fd9c92ab214b91d511851 (patch)
tree7ffd48761e61ed1f3789cfbd357075f6b8689764 /lib
parent30be43abb6c244a39ba5700aab2f47f2e7162827 (diff)
downloadchef-64f0f0cfc48f1b69e39fd9c92ab214b91d511851.tar.gz
Deleting the create_value function that does not get used elsewhere
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/win32/registry.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/chef/win32/registry.rb b/lib/chef/win32/registry.rb
index bc78423050..89f6968470 100644
--- a/lib/chef/win32/registry.rb
+++ b/lib/chef/win32/registry.rb
@@ -71,19 +71,6 @@ class Chef
true
end
- def create_value(key_path, value)
- Chef::Log.debug("Creating value #{value[:name]} in registry key #{key_path} with type #{value[:type]} and data #{value[:data]}")
- if value_exists?(key_path, value)
- raise Chef::Exceptions::Win32RegValueExists, "Value #{value[:name]} in registry key #{key_path} already exists"
- end
- hive, key = get_hive_and_key(key_path)
- hive.open(key, ::Win32::Registry::KEY_SET_VALUE | registry_system_architecture) do |reg|
- reg.write(value[:name], get_type_from_name(value[:type]), value[:data])
- Chef::Log.debug("Value #{value[:name]} in registry key #{key_path} updated")
- end
- true
- end
-
def delete_value(key_path, value)
Chef::Log.debug("Deleting value #{value[:name]} from registry key #{key_path}")
if value_exists?(key_path, value)