Class: TestQueue::Worker
- Inherits:
-
Object
- Object
- TestQueue::Worker
- Defined in:
- lib/test_queue/runner.rb
Instance Attribute Summary collapse
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#failure_output ⇒ Object
Returns the value of attribute failure_output.
-
#host ⇒ Object
Returns the value of attribute host.
-
#num ⇒ Object
Returns the value of attribute num.
-
#output ⇒ Object
Returns the value of attribute output.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#stats ⇒ Object
Returns the value of attribute stats.
-
#status ⇒ Object
Returns the value of attribute status.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(pid, num) ⇒ Worker
constructor
A new instance of Worker.
- #lines ⇒ Object
Constructor Details
#initialize(pid, num) ⇒ Worker
Returns a new instance of Worker.
11 12 13 14 15 16 17 |
# File 'lib/test_queue/runner.rb', line 11 def initialize(pid, num) @pid = pid @num = num @start_time = Time.now @output = '' @stats = {} end |
Instance Attribute Details
#end_time ⇒ Object
Returns the value of attribute end_time.
8 9 10 |
# File 'lib/test_queue/runner.rb', line 8 def end_time @end_time end |
#failure_output ⇒ Object
Returns the value of attribute failure_output.
9 10 11 |
# File 'lib/test_queue/runner.rb', line 9 def failure_output @failure_output end |
#host ⇒ Object
Returns the value of attribute host.
7 8 9 |
# File 'lib/test_queue/runner.rb', line 7 def host @host end |
#num ⇒ Object
Returns the value of attribute num.
7 8 9 |
# File 'lib/test_queue/runner.rb', line 7 def num @num end |
#output ⇒ Object
Returns the value of attribute output.
7 8 9 |
# File 'lib/test_queue/runner.rb', line 7 def output @output end |
#pid ⇒ Object
Returns the value of attribute pid.
7 8 9 |
# File 'lib/test_queue/runner.rb', line 7 def pid @pid end |
#start_time ⇒ Object
Returns the value of attribute start_time.
8 9 10 |
# File 'lib/test_queue/runner.rb', line 8 def start_time @start_time end |
#stats ⇒ Object
Returns the value of attribute stats.
7 8 9 |
# File 'lib/test_queue/runner.rb', line 7 def stats @stats end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/test_queue/runner.rb', line 7 def status @status end |
#summary ⇒ Object
Returns the value of attribute summary.
9 10 11 |
# File 'lib/test_queue/runner.rb', line 9 def summary @summary end |
Instance Method Details
#lines ⇒ Object
19 20 21 |
# File 'lib/test_queue/runner.rb', line 19 def lines @output.split("\n") end |