Class: ShellOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/outputs/shell_output.rb

Instance Method Summary collapse

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_runObject


7
8
# File 'lib/outputs/shell_output.rb', line 7

def start_run
end