Class: Hive::Worker::Shell
- Inherits:
-
Hive::Worker
- Object
- Hive::Worker
- Hive::Worker::Shell
- Defined in:
- lib/hive/worker/shell.rb
Overview
The Shell worker
Instance Attribute Summary
Attributes inherited from Hive::Worker
Instance Method Summary collapse
-
#autogenerated_queues ⇒ Object
List of autogenerated queues for the worker.
-
#hive_mind_device_identifiers ⇒ Object
Parameters for uniquely identifying the device.
-
#initialize(options = {}) ⇒ Shell
constructor
A new instance of Shell.
- #pre_script(job, file_system, script) ⇒ Object
Methods inherited from Hive::Worker
#allocate_port, #checkout_code, #cleanup, #detect_res_file, #device_status, #diagnostics, #execute_job, #job_message_klass, #keep_running?, #lion_config, #mind_meld_klass, #poll_queue, #post_script, #process_xunit_results, #release_all_ports, #release_port, #reservation_details, #reserve_job, #set_device_status, #set_job_state_to, #signal_safe_post_script, #testmine_config, #update_queue_log, #update_queues, #upload_files, #upload_results
Constructor Details
#initialize(options = {}) ⇒ Shell
Returns a new instance of Shell.
7 8 9 10 |
# File 'lib/hive/worker/shell.rb', line 7 def initialize( = {}) @default_component ||= "#{self.class.to_s} [#{$$}]" super end |
Instance Method Details
#autogenerated_queues ⇒ Object
List of autogenerated queues for the worker
16 17 18 |
# File 'lib/hive/worker/shell.rb', line 16 def autogenerated_queues ['queues'] || [] end |
#hive_mind_device_identifiers ⇒ Object
Parameters for uniquely identifying the device
21 22 23 |
# File 'lib/hive/worker/shell.rb', line 21 def hive_mind_device_identifiers { id: @hive_id } end |
#pre_script(job, file_system, script) ⇒ Object
12 13 |
# File 'lib/hive/worker/shell.rb', line 12 def pre_script(job, file_system, script) end |