Class: Kitchen::Driver::Static
- Inherits:
-
Base
- Object
- Base
- Kitchen::Driver::Static
- Defined in:
- lib/kitchen/driver/static.rb,
lib/kitchen/driver/queueing/base.rb,
lib/kitchen/driver/queueing/json.rb,
lib/kitchen/driver/queueing/script.rb
Overview
Driver for using static/physical hosts with Kitchen. This driver is a newer version of the proxy driver.
Defined Under Namespace
Modules: Queueing
Constant Summary collapse
- BANNER_FORMAT =
"[kitchen-static] >>> %s <<<".freeze
Instance Method Summary collapse
Instance Method Details
#create(state) ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/kitchen/driver/static.rb', line 26 def create(state) print_version state[:hostname] = queueing? ? request(state) : config[:host] if queueing? info format("[kitchen-static] Received %s for testing", state[:hostname]) info format(BANNER_FORMAT, queueing_handler.) if queueing_handler. end end |
#destroy(state) ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/kitchen/driver/static.rb', line 37 def destroy(state) print_version return if state[:hostname].nil? release(state) if queueing? info format("[kitchen-static] Released %s from testing", state[:hostname]) if queueing? state.delete(:hostname) end |