Class: Borg::TestRunner

Inherits:
EM::Connection
  • Object
show all
Includes:
EM::P::ObjectProtocol
Defined in:
lib/borg/borg_worker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#runner_typeObject

Returns the value of attribute runner_type.



78
79
80
# File 'lib/borg/borg_worker.rb', line 78

def runner_type
  @runner_type
end

#workerObject

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

#unbindObject



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