Class: Serverspec::Type::WindowsRegistryKey
- Inherits:
-
Base
- Object
- Base
- Serverspec::Type::WindowsRegistryKey
show all
- Defined in:
- lib/serverspec/type/windows_registry_key.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #to_ary, #to_s
Instance Method Details
#exists? ⇒ Boolean
3
4
5
|
# File 'lib/serverspec/type/windows_registry_key.rb', line 3
def exists?
@runner.check_registry_key_exists(@name)
end
|
#has_property?(property_name, property_type = :type_string) ⇒ Boolean
7
8
9
|
# File 'lib/serverspec/type/windows_registry_key.rb', line 7
def has_property?(property_name, property_type = :type_string)
@runner.check_registry_key_has_property(@name, {:name => property_name, :type => property_type})
end
|
#has_property_value?(property_name, property_type, value) ⇒ Boolean
15
16
17
|
# File 'lib/serverspec/type/windows_registry_key.rb', line 15
def has_property_value?(property_name, property_type, value)
@runner.check_registry_key_has_value(@name, {:name => property_name, :type => property_type, :value => value})
end
|
#has_value?(value) ⇒ Boolean
11
12
13
|
# File 'lib/serverspec/type/windows_registry_key.rb', line 11
def has_value?(value)
@runner.check_registry_key_has_value(@name, {:name => '', :type => :type_string, :value => value})
end
|