Class: Kitchen::Driver::Dummy
- Inherits:
-
Base
- Object
- Plugin::Base
- Base
- Kitchen::Driver::Dummy
- Defined in:
- lib/kitchen/driver/dummy.rb
Overview
Dummy driver for Kitchen. This driver does nothing but report what would happen if this driver did anything of consequence. As a result it may be a useful driver to use when debugging or developing new features or plugins.
Instance Attribute Summary
Attributes included from Configurable
Instance Method Summary collapse
-
#create(state) ⇒ Object
Creates an instance.
-
#destroy(state) ⇒ Object
Destroys an instance.
- #setup(state) ⇒ Object
- #verify(state) ⇒ Object
Methods inherited from Base
#cache_directory, #doctor, #initialize, kitchen_driver_api_version, #package
Methods included from ShellOut
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
Constructor Details
This class inherits a constructor from Kitchen::Driver::Base
Instance Method Details
#create(state) ⇒ Object
Creates an instance.
37 38 39 40 41 |
# File 'lib/kitchen/driver/dummy.rb', line 37 def create(state) # Intentionally not calling `super` to avoid pre_create_command. state[:my_id] = "#{instance.name}-#{Time.now.to_i}" report(:create, state) end |
#destroy(state) ⇒ Object
Destroys an instance.
54 55 56 57 |
# File 'lib/kitchen/driver/dummy.rb', line 54 def destroy(state) report(:destroy, state) state.delete(:my_id) end |
#setup(state) ⇒ Object
44 45 46 |
# File 'lib/kitchen/driver/dummy.rb', line 44 def setup(state) report(:setup, state) end |
#verify(state) ⇒ Object
49 50 51 |
# File 'lib/kitchen/driver/dummy.rb', line 49 def verify(state) report(:verify, state) end |