#822: remove #abf_worker_base_class methods

This commit is contained in:
Vokhmin Alexey V 2012-12-28 23:11:58 +04:00
parent 8c67c5151f
commit d60ea41146
3 changed files with 1 additions and 9 deletions

View File

@ -433,10 +433,6 @@ class BuildList < ActiveRecord::Base
'rpm_worker'
end
def abf_worker_base_class
'AbfWorker::RpmWorker'
end
def abf_worker_args
include_repos_hash = {}.tap do |h|
include_repos.each do |r|

View File

@ -137,10 +137,6 @@ class ProductBuildList < ActiveRecord::Base
'iso_worker'
end
def abf_worker_base_class
'AbfWorker::IsoWorker'
end
def abf_worker_args
file_name = "#{project.owner.uname}-#{project.name}-#{commit_hash}"
opts = {:host => ActionMailer::Base.default_url_options[:host]}

View File

@ -39,7 +39,7 @@ module AbfWorker
end
def worker_queue_class(queue_class = nil)
queue_class ||= abf_worker_base_class
queue_class ||= "AbfWorker::#{abf_worker_base_queue.classify}"
queue_class << abf_worker_priority.capitalize
end