Class: DeepTest::UI::Console
- Inherits:
-
Object
- Object
- DeepTest::UI::Console
- Defined in:
- lib/deep_test/ui/console.rb
Defined Under Namespace
Classes: Spinner
Constant Summary collapse
- METHOD_DESCRIPTIONS =
{ :push_code => "Synchronizing working copies on distributed machines", :establish_beachhead => "Spawning test environment processes", :load_files => "Loading test files for agents", :deploy_agents => "Deploying agents", }
Instance Method Summary collapse
- #dispatch_finished(method_name) ⇒ Object
- #dispatch_starting(method_name) ⇒ Object
- #distributed_failover_to_local(method, exception) ⇒ Object
-
#initialize(options) ⇒ Console
constructor
A new instance of Console.
- #label(method_name) ⇒ Object
Constructor Details
#initialize(options) ⇒ Console
Returns a new instance of Console.
4 5 |
# File 'lib/deep_test/ui/console.rb', line 4 def initialize() end |
Instance Method Details
#dispatch_finished(method_name) ⇒ Object
32 33 34 35 |
# File 'lib/deep_test/ui/console.rb', line 32 def dispatch_finished(method_name) @spinner.stop if @spinner @spinner = nil end |
#dispatch_starting(method_name) ⇒ Object
22 23 24 25 26 |
# File 'lib/deep_test/ui/console.rb', line 22 def dispatch_starting(method_name) @spinner.stop if @spinner @spinner = Spinner.new(label(method_name)) @spinner.start end |
#distributed_failover_to_local(method, exception) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/deep_test/ui/console.rb', line 14 def distributed_failover_to_local(method, exception) FailureMessage.show "Distributed DeepTest Failure", <<-end_msg Failed during #{method} #{exception.} Failing over to local run end_msg end |
#label(method_name) ⇒ Object
28 29 30 |
# File 'lib/deep_test/ui/console.rb', line 28 def label(method_name) METHOD_DESCRIPTIONS[method_name.to_sym] || method_name.to_s end |