class Chef::Resource::WindowsAutorun

Public Instance Methods

registry_path() click to toggle source

determine the full registry path based on the root property @return [String]

# File lib/chef/resource/windows_auto_run.rb, line 80
def registry_path
  { machine: "HKLM", user: "HKCU" }[new_resource.root] + \
    '\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run'
end