Sha256: 8fb90324ad6681f39b31522640e54554098bb47e396f76dbc75f901001c718c4

Contents?: true

Size: 651 Bytes

Versions: 73

Compression:

Stored size: 651 Bytes

Contents

module Serverspec
  module Type
    class WindowsRegistryKey < Base
      def exists?
        backend.check_registry_key(@name)
      end

      def has_property?(property_name, property_type = :type_string)
        backend.check_registry_key(@name, {:name => property_name, :type => property_type})
      end

      def has_value?(value)
        backend.check_registry_key(@name, {:name => '', :type => :type_string, :value => value})
      end

      def has_property_value?(property_name, property_type, value)
        backend.check_registry_key(@name, {:name => property_name, :type => property_type, :value => value})
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
serverspec-1.16.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.15.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.14.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.13.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.12.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.11.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.10.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.9.1 lib/serverspec/type/windows_registry_key.rb
serverspec-1.9.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.8.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.7.1 lib/serverspec/type/windows_registry_key.rb
serverspec-1.7.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.6.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.5.0 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta2 lib/serverspec/type/windows_registry_key.rb
serverspec-1.4.2 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta1 lib/serverspec/type/windows_registry_key.rb
serverspec-1.4.1 lib/serverspec/type/windows_registry_key.rb
serverspec-1.4.0 lib/serverspec/type/windows_registry_key.rb
serverspec-1.3.0 lib/serverspec/type/windows_registry_key.rb