Class: WindowsRegistryKey
- Inherits:
-
RegistryKey
- Object
- RegistryKey
- WindowsRegistryKey
- Defined in:
- lib/resources/registry_key.rb
Overview
for compatability with serverspec this is deprecated syntax and will be removed in future versions
Instance Attribute Summary
Attributes inherited from RegistryKey
Instance Method Summary collapse
- #deprecated ⇒ Object
-
#initialize(name) ⇒ WindowsRegistryKey
constructor
A new instance of WindowsRegistryKey.
Methods inherited from RegistryKey
#exists?, #has_property?, #has_property_value?, #has_value?, #method_missing, #to_s
Constructor Details
#initialize(name) ⇒ WindowsRegistryKey
Returns a new instance of WindowsRegistryKey.
175 176 177 178 |
# File 'lib/resources/registry_key.rb', line 175 def initialize(name) deprecated super(name) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RegistryKey
Instance Method Details
#deprecated ⇒ Object
180 181 182 |
# File 'lib/resources/registry_key.rb', line 180 def deprecated warn '[DEPRECATION] `windows_registry_key(reg_key)` is deprecated. Please use `registry_key(\'path\to\key\')` instead.' end |