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.
40 41 42 43 44 45 |
# File 'lib/kitchen/diagnostic.rb', line 40 def initialize( = {}) @loader = .fetch(:loader, nil) @instances = .fetch(:instances, []) @plugins = .fetch(:plugins, false) @result = Hash.new end |
Instance Method Details
#read ⇒ Hash
Returns a Hash with stringified keys containing diagnostic information.
50 51 52 53 54 55 56 57 |
# File 'lib/kitchen/diagnostic.rb', line 50 def read prepare_common prepare_plugins prepare_loader prepare_instances Util.stringified_hash(result) end |