Sha256: 43b9260ff98fc782fa1f3da72fc8d86120a01b0c6ef54f08f1efdda944972c15

Contents?: true

Size: 691 Bytes

Versions: 11

Compression:

Stored size: 691 Bytes

Contents

module Serverspec
  module 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
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta19 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta18 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta17 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta16 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta15 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta14 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta13 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta12 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta11 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta10 lib/serverspec/type/windows_registry_key.rb
serverspec-2.0.0.beta9 lib/serverspec/type/windows_registry_key.rb