Class: Kitchen::Provisioner::Dummy

Inherits:
Base
  • Object
show all
Defined in:
lib/kitchen/provisioner/dummy.rb

Overview

Dummy provisioner for Kitchen. This driver does nothing but report what would happen if this provisioner did anything of consequence. As a result it may be a useful provisioner 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

#check_license, #cleanup_sandbox, #create_sandbox, #doctor, #init_command, #initialize, #install_command, kitchen_provisioner_api_version, #prepare_command, #run_command, #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?

Constructor Details

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

Instance Method Details

#call(state) ⇒ Object

Runs the provisioner on the instance.

rubocop:disable Metrics/AbcSize

Parameters:

  • state (Hash)

    mutable instance state

Raises:


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

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