lib/kitchen/lifecycle_hooks.rb
# Run a lifecycle phase with the pre and post hooks.
#
# @param phase [String] Lifecycle phase which is being executed.
# @param state_file [StateFile] Instance state file object.
# @param block [Proc] Block of code implementing the lifecycle phase.
# @return [void]
Run a lifecycle phase with the pre and post hooks.
Run a lifecycle phase with the pre and post hooks .
def run_with_hooks(phase, state_file, &block)
      run(instance, phase, state_file, :pre)
      yield
      run(instance, phase, state_file, :post)
    end
def run_with_hooks ( phase , state_file , & block ) run ( instance , phase , state_file , :pre ) yield run ( instance , phase , state_file , :post ) end
Run a lifecycle phase with the pre and post hooks.
Run a lifecycle phase with the pre and post hooks .
None
void
phase
Lifecycle phase which is being executed.
Lifecycle phase which is being executed .
state_file
Instance state file object.
Instance state file object .
block
Block of code implementing the lifecycle phase.
Block of code implementing the lifecycle phase .