Class: WindowsRegistryKey

Inherits:
RegistryKey show all
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

#reg_key

Instance Method Summary collapse

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.



171
172
173
174
# File 'lib/resources/registry_key.rb', line 171

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

#deprecatedObject



176
177
178
# File 'lib/resources/registry_key.rb', line 176

def deprecated
  warn '[DEPRECATION] `yumrepo(reponame)` is deprecated.  Please use `yum.repo(reponame)` instead.'
end