Sha256: 8b171f20d6f2d7daafea24809d7251a9a6b35b951f19e569c0d90d37f2acbf53

Contents?: true

Size: 649 Bytes

Versions: 85

Compression:

Stored size: 649 Bytes

Contents

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

Version data entries

85 entries across 85 versions & 4 rubygems

Version Path
serverspec-2.42.3 lib/serverspec/type/windows_registry_key.rb
serverspec-2.42.2 lib/serverspec/type/windows_registry_key.rb
serverspec-2.42.1 lib/serverspec/type/windows_registry_key.rb
serverspec-cem-acpt-2.42.0 lib/serverspec/type/windows_registry_key.rb
serverspec-2.42.0 lib/serverspec/type/windows_registry_key.rb
serverspec-2.41.8 lib/serverspec/type/windows_registry_key.rb
serverspec-2.41.7 lib/serverspec/type/windows_registry_key.rb
serverspec-2.41.6 lib/serverspec/type/windows_registry_key.rb
serverspec-2.41.5 lib/serverspec/type/windows_registry_key.rb
serverspec-2.41.4 lib/serverspec/type/windows_registry_key.rb
serverspec-ruby19-2.24.3 lib/serverspec/type/windows_registry_key.rb
serverspec-2.41.3 lib/serverspec/type/windows_registry_key.rb
serverspec-2.41.2 lib/serverspec/type/windows_registry_key.rb
serverspec-2.41.1 lib/serverspec/type/windows_registry_key.rb
serverspec-2.41.0 lib/serverspec/type/windows_registry_key.rb
serverspec-2.40.0 lib/serverspec/type/windows_registry_key.rb
serverspec-2.39.2 lib/serverspec/type/windows_registry_key.rb
serverspec-2.39.1 lib/serverspec/type/windows_registry_key.rb
serverspec-2.39.0 lib/serverspec/type/windows_registry_key.rb
serverspec-2.38.1 lib/serverspec/type/windows_registry_key.rb