Class: Kitchen::Command::Diagnose

Inherits:
Base
  • Object
show all
Defined in:
lib/kitchen/command/diagnose.rb

Overview

Command to log into to instance.

Author:

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#callObject



33
34
35
36
37
38
39
40
# File 'lib/kitchen/command/diagnose.rb', line 33

def call
  instances = record_failure { load_instances }

  loader = record_failure { load_loader }

  puts Kitchen::Diagnostic.new(
    :loader => loader, :instances => instances).read.to_yaml
end