Method: Kitchen::Command::Diagnose#call

Defined in:
lib/kitchen/command/diagnose.rb

#callObject

Invoke the command.



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

def call
  instances = record_failure { load_instances }

  loader = record_failure { load_loader }

  puts YAML.dump(Kitchen::Diagnostic.new(
    loader:, instances:, plugins: plugins?
  ).read)
end