Class: Kitchen::Diagnostic
- Inherits:
-
Object
- Object
- Kitchen::Diagnostic
- Defined in:
- lib/kitchen/diagnostic.rb
Overview
Combines and compiles diagnostic information about a Test Kitchen configuration suitable for support and troubleshooting.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Diagnostic
constructor
A new instance of Diagnostic.
- #read ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Diagnostic
Returns a new instance of Diagnostic.
29 30 31 32 33 |
# File 'lib/kitchen/diagnostic.rb', line 29 def initialize( = {}) @loader = .fetch(:loader, nil) @instances = .fetch(:instances, []) @result = Hash.new end |
Instance Method Details
#read ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/kitchen/diagnostic.rb', line 35 def read prepare_common prepare_loader prepare_instances Util.stringified_hash(result) end |