rosa-build/lib/abf_worker/iso_worker_observer.rb

14 lines
338 B
Ruby
Raw Normal View History

2012-11-08 21:39:42 +00:00
module AbfWorker
class IsoWorkerObserver
@queue = :iso_worker_observer
def self.perform(options)
status = options['status'].to_i
pbl = ProductBuildList.find options['id']
pbl.status = status
pbl.results = options['results'] if status != ProductBuildList::BUILD_STARTED
pbl.save!
end
end
end