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
Constructs a new Diagnostic object with an optional loader and optional instances array.
-
#read ⇒ Hash
Returns a Hash with stringified keys containing diagnostic information.
Constructor Details
#initialize(options = {}) ⇒ Diagnostic
Constructs a new Diagnostic object with an optional loader and optional instances array.
37 38 39 40 41 42 |
# File 'lib/kitchen/diagnostic.rb', line 37 def initialize( = {}) @loader = .fetch(:loader, nil) @instances = .fetch(:instances, []) @plugins = .fetch(:plugins, false) @result = {} end |
Instance Method Details
#read ⇒ Hash
Returns a Hash with stringified keys containing diagnostic information.
47 48 49 50 51 52 53 54 |
# File 'lib/kitchen/diagnostic.rb', line 47 def read prepare_common prepare_plugins prepare_loader prepare_instances Util.stringified_hash(result) end |