class DeepTest::UI::Console
Constants
- METHOD_DESCRIPTIONS
Public Class Methods
new(options)
click to toggle source
# File lib/deep_test/ui/console.rb, line 4 def initialize(options) end
Public Instance Methods
dispatch_finished(method_name)
click to toggle source
# File lib/deep_test/ui/console.rb, line 34 def dispatch_finished(method_name) @spinner.stop if @spinner @spinner = nil end
dispatch_starting(method_name)
click to toggle source
# File lib/deep_test/ui/console.rb, line 24 def dispatch_starting(method_name) @spinner.stop if @spinner @spinner = Spinner.new(label(method_name)) @spinner.start end
distributed_failover_to_local(method, exception)
click to toggle source
# File lib/deep_test/ui/console.rb, line 15 def distributed_failover_to_local(method, exception) width = 70 puts " Distributed DeepTest Failure ".center(width, '*') puts "* Failed during #{method}".ljust(width - 1) + "*" puts "* #{exception.message}".ljust(width - 1) + "*" puts "* Failing over to local run".ljust(width - 1) + "*" puts "*" * width end
label(method_name)
click to toggle source
# File lib/deep_test/ui/console.rb, line 30 def label(method_name) METHOD_DESCRIPTIONS[method_name.to_sym] || method_name.to_s end