Class: Inspec::Resources::WindowsRegistryKey
- Inherits:
-
RegistryKey
- Object
- RegistryKey
- Inspec::Resources::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 Method Summary collapse
- #deprecated ⇒ Object
-
#initialize(name) ⇒ WindowsRegistryKey
constructor
A new instance of WindowsRegistryKey.
Methods inherited from RegistryKey
#children, #exists?, #has_property?, #has_property_value?, #has_value?, #method_missing, #to_s
Constructor Details
#initialize(name) ⇒ WindowsRegistryKey
Returns a new instance of WindowsRegistryKey.
288 289 290 291 |
# File 'lib/resources/registry_key.rb', line 288 def initialize(name) deprecated super(name) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Inspec::Resources::RegistryKey
Instance Method Details
#deprecated ⇒ Object
293 294 295 |
# File 'lib/resources/registry_key.rb', line 293 def deprecated warn '[DEPRECATION] `windows_registry_key(reg_key)` is deprecated. Please use `registry_key(\'path\to\key\')` instead.' end |