Class: Inferno::CLI::Execute::JSONOutputter
- Inherits:
-
Object
- Object
- Inferno::CLI::Execute::JSONOutputter
- Includes:
- Serialize
- Defined in:
- lib/inferno/apps/cli/execute/json_outputter.rb
Instance Method Summary collapse
- #print_around_run(_options) ⇒ Object
- #print_end_message(_options) ⇒ Object
- #print_error(_options, exception) ⇒ Object
- #print_results(_options, results) ⇒ Object
- #print_start_message(_options) ⇒ Object
Methods included from Serialize
Instance Method Details
#print_around_run(_options) ⇒ Object
12 13 14 |
# File 'lib/inferno/apps/cli/execute/json_outputter.rb', line 12 def print_around_run(, &) yield end |
#print_end_message(_options) ⇒ Object
20 |
# File 'lib/inferno/apps/cli/execute/json_outputter.rb', line 20 def (); end |
#print_error(_options, exception) ⇒ Object
22 23 24 |
# File 'lib/inferno/apps/cli/execute/json_outputter.rb', line 22 def print_error(, exception) puts exception.to_json end |
#print_results(_options, results) ⇒ Object
16 17 18 |
# File 'lib/inferno/apps/cli/execute/json_outputter.rb', line 16 def print_results(, results) puts serialize(results) end |
#print_start_message(_options) ⇒ Object
10 |
# File 'lib/inferno/apps/cli/execute/json_outputter.rb', line 10 def (); end |