Class: Kitchen::Command::Action

Inherits:
Base
  • Object
show all
Includes:
RunAction
Defined in:
lib/kitchen/command/action.rb

Overview

Command to run a single action one or more instances.

Author:

Instance Method Summary collapse

Methods included from RunAction

#concurrency_setting, #report_errors, #run_action, #run_action_in_thread

Methods inherited from Base

#initialize

Methods included from Logging

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

Constructor Details

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

Instance Method Details

#callObject

Invoke the command.



31
32
33
34
35
36
37
38
# File 'lib/kitchen/command/action.rb', line 31

def call
  banner "Starting Test Kitchen (v#{Kitchen::VERSION})"
  elapsed = Benchmark.measure do
    results = parse_subcommand(args.first)
    run_action(action, results)
  end
  banner "Test Kitchen is finished. #{Util.duration(elapsed.real)}"
end