Class: ShellOutput
- Inherits:
-
Object
- Object
- ShellOutput
- Defined in:
- lib/outputs/shell_output.rb
Instance Method Summary collapse
- #add_result(result) ⇒ Object
-
#initialize(output) ⇒ ShellOutput
constructor
A new instance of ShellOutput.
- #start_run ⇒ Object
Constructor Details
#initialize(output) ⇒ ShellOutput
Returns a new instance of ShellOutput.
3 4 5 |
# File 'lib/outputs/shell_output.rb', line 3 def initialize(output) @output = output end |
Instance Method Details
#add_result(result) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/outputs/shell_output.rb', line 10 def add_result(result) @output.puts result[:title] @output.puts result[:state] @output.puts result[:summary] @output.puts result[:detail] end |
#start_run ⇒ Object
7 8 |
# File 'lib/outputs/shell_output.rb', line 7 def start_run end |