Class: Kitchen::Verifier::Dummy

Inherits:
Base show all
Defined in:
lib/kitchen/verifier/dummy.rb

Overview

Dummy verifier for Kitchen. This verifier does nothing but report what would happen if this verifier did anything of consequence. As a result it may be a useful verifier to use when debugging or developing new features or plugins.

Author:

Instance Attribute Summary

Attributes included from Configurable

#instance

Instance Method Summary collapse

Methods inherited from Base

#cleanup_sandbox, #create_sandbox, #doctor, #init_command, #initialize, #install_command, kitchen_verifier_api_version, #prepare_command, #run_command, #sandbox_dirs, #sandbox_path

Methods included from Logging

#banner, #debug, #error, #fatal, #info, #warn

Methods included from Configurable

#[], #bourne_shell?, #calculate_path, #config_keys, #diagnose, #diagnose_plugin, #finalize_config!, included, #name, #powershell_shell?, #remote_path_join, #unix_os?, #verify_dependencies, #windows_os?

Methods inherited from Plugin::Base

no_parallel_for

Constructor Details

This class inherits a constructor from Kitchen::Verifier::Base

Instance Method Details

#call(state) ⇒ Object

Runs the verifier on the instance.

Parameters:

  • state (Hash)

    mutable instance state

Raises:



37
38
39
40
41
42
# File 'lib/kitchen/verifier/dummy.rb', line 37

def call(state)
  info("[#{name}] Verify on instance=#{instance} with state=#{state}")
  sleep_if_set
  failure_if_set
  debug("[#{name}] Verify completed (#{config[:sleep]}s).")
end