/usr/lib/ruby/vendor_ruby/serverspec/type/windows_registry_key.rb is in ruby-serverspec 2.37.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | module Serverspec::Type
class WindowsRegistryKey < Base
def exists?
@runner.check_registry_key_exists(@name)
end
def has_property?(property_name, property_type = :type_string)
@runner.check_registry_key_has_property(@name, {:name => property_name, :type => property_type})
end
def has_value?(value)
@runner.check_registry_key_has_value(@name, {:name => '', :type => :type_string, :value => value})
end
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
end
end
|