Class: Pmux::TaskQueue

Inherits:
Array
  • Object
show all
Defined in:
lib/pmux/task_queue.rb

Instance Method Summary collapse

Instance Method Details

#delete_job(job_id) ⇒ Object



7
8
9
# File 'lib/pmux/task_queue.rb', line 7

def delete_job job_id
  delete_if {|item| item[:job_id] == job_id}
end

#inject_tasks(tasks) ⇒ Object



3
4
5
# File 'lib/pmux/task_queue.rb', line 3

def inject_tasks tasks
  self.concat tasks
end