Class: BuildWorker

Inherits:
Object
  • Object
show all
Defined in:
app/workers/build_worker.rb

Class Method Summary collapse

Class Method Details

.perform(id) ⇒ Object



5
6
7
# File 'app/workers/build_worker.rb', line 5

def perform(id)
  Build.find(id).run
end

.perform_async(id) ⇒ Object



9
10
11
# File 'app/workers/build_worker.rb', line 9

def perform_async(id)
  Resque.enqueue(self, id)
end