Class: Kitchen::Command::Test
- Includes:
- RunAction
- Defined in:
- lib/kitchen/command/test.rb
Overview
Command to test one or more instances.
Instance Method Summary collapse
Methods included from RunAction
Methods inherited from Base
Constructor Details
This class inherits a constructor from Kitchen::Command::Base
Instance Method Details
#call ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/kitchen/command/test.rb', line 34 def call if ! %w{passing always never}.include?([:destroy]) raise ArgumentError, "Destroy mode must be passing, always, or never." end "Starting Kitchen (v#{Kitchen::VERSION})" elapsed = Benchmark.measure do destroy_mode = [:destroy].to_sym results = parse_subcommand(args.join('|')) run_action(:test, results, destroy_mode) end "Kitchen is finished. #{Util.duration(elapsed.real)}" end |