class Kitchen::Command::Doctor
Check for common system or configuration problems.
Public Instance Methods
call()
click to toggle source
Invoke the command.
# File lib/kitchen/command/doctor.rb, line 23 def call results = parse_subcommand(args.first) if results.empty? error("No instances configured, cannot check configuration. Please check your .kitchen.yml and confirm it has platform and suites sections.") exit(1) end # By default only doctor the first instance to avoid output spam. results = [results.first] unless options[:all] failed = results.any? do |instance| debug "Doctor on #{instance.name}." instance.doctor_action end exit(1) if failed end