module DTK::Client::Operation::Service::TaskStatus::StreamMode::Element::RenderMixin
Public Instance Methods
current_status()
click to toggle source
# File lib/client/operation/service/task_status/stream_mode/element/render.rb, line 35 def current_status if @response_element["status"] == 'debugging' && @response_element["type"].include?("stage_end") return true else return false end end
formatted_duration?()
click to toggle source
# File lib/client/operation/service/task_status/stream_mode/element/render.rb, line 31 def formatted_duration? @formatter.formatted_duration?(field?(:duration)) end
render_border()
click to toggle source
# File lib/client/operation/service/task_status/stream_mode/element/render.rb, line 47 def render_border print_to_console(@formatter.border) render_empty_line end
render_duration_line()
click to toggle source
# File lib/client/operation/service/task_status/stream_mode/element/render.rb, line 43 def render_duration_line render_line(@formatter.duration_msg?(field?(:duration))) end
render_empty_line()
click to toggle source
# File lib/client/operation/service/task_status/stream_mode/element/render.rb, line 52 def render_empty_line render_empty_lines(1) end
render_empty_lines(num_empty_lines = 1)
click to toggle source
# File lib/client/operation/service/task_status/stream_mode/element/render.rb, line 56 def render_empty_lines(num_empty_lines = 1) print_to_console("\n" * num_empty_lines) end
render_line(msg, params = {})
click to toggle source
# File lib/client/operation/service/task_status/stream_mode/element/render.rb, line 20 def render_line(msg, params = {}) if msg print_to_console(@formatter.format(msg, params)) render_empty_line end end
render_start_time(started_at)
click to toggle source
# File lib/client/operation/service/task_status/stream_mode/element/render.rb, line 27 def render_start_time(started_at) render_line(@formatter.start_time_msg?(started_at)) end
Private Instance Methods
print_to_console(string)
click to toggle source
# File lib/client/operation/service/task_status/stream_mode/element/render.rb, line 62 def print_to_console(string) #TODO: stub STDOUT << string end