Class: Borg::TestRunner
- Inherits:
-
EM::Connection
- Object
- EM::Connection
- Borg::TestRunner
- Includes:
- EM::P::ObjectProtocol
- Defined in:
- lib/borg/borg_worker.rb
Instance Attribute Summary collapse
-
#runner_type ⇒ Object
Returns the value of attribute runner_type.
-
#worker ⇒ Object
Returns the value of attribute worker.
Instance Method Summary collapse
Instance Attribute Details
#runner_type ⇒ Object
Returns the value of attribute runner_type.
78 79 80 |
# File 'lib/borg/borg_worker.rb', line 78 def runner_type @runner_type end |
#worker ⇒ Object
Returns the value of attribute worker.
77 78 79 |
# File 'lib/borg/borg_worker.rb', line 77 def worker @worker end |
Instance Method Details
#receive_data(data) ⇒ Object
81 82 83 |
# File 'lib/borg/borg_worker.rb', line 81 def receive_data(data) worker.send_object(BuildOutput.new(data)) end |
#unbind ⇒ Object
85 86 87 88 89 90 91 92 |
# File 'lib/borg/borg_worker.rb', line 85 def unbind puts "Sending the status thingy" if(runner_type == 'unit') worker.start_cucumber(BuildStatus.new(get_status.exitstatus)) else worker.send_final_report(BuildStatus.new(get_status.exitstatus)) end end |