Class: Kitchen::Command::Diagnose
- Defined in:
- lib/kitchen/command/diagnose.rb
Overview
Command to log into to instance.
Instance Method Summary collapse
-
#call ⇒ Object
Invoke the command.
Methods inherited from Base
Methods included from Logging
#banner, #debug, #error, #fatal, #info, #warn
Constructor Details
This class inherits a constructor from Kitchen::Command::Base
Instance Method Details
#call ⇒ Object
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: loader, instances: instances, plugins: plugins? ).read) end |