Method: Chef::Win32::Registry#get_subkeys
- Defined in:
- lib/chef/win32/registry.rb
#get_subkeys(key_path) ⇒ Object
193 194 195 196 197 198 199 200 201 |
# File 'lib/chef/win32/registry.rb', line 193 def get_subkeys(key_path) subkeys = [] key_exists!(key_path) hive, key = get_hive_and_key(key_path) hive.open(key, ::Win32::Registry::KEY_READ | registry_system_architecture) do |reg| reg.each_key { |current_key| subkeys << current_key } end subkeys end |