#794: refactoring of constants
This commit is contained in:
parent
f522ceec3c
commit
4e213d77af
|
@ -3,15 +3,14 @@ module AbfWorker
|
||||||
class BuildListsPublishTaskManager
|
class BuildListsPublishTaskManager
|
||||||
REDIS_MAIN_KEY = 'abf-worker::build-lists-publish-task-manager::'
|
REDIS_MAIN_KEY = 'abf-worker::build-lists-publish-task-manager::'
|
||||||
|
|
||||||
RESIGN_REPOSITORIES = "#{REDIS_MAIN_KEY}resign-repositories"
|
%w(RESIGN_REPOSITORIES
|
||||||
|
PROJECTS_FOR_CLEANUP
|
||||||
PROJECTS_FOR_CLEANUP = "#{REDIS_MAIN_KEY}projects-for-cleanup"
|
LOCKED_PROJECTS_FOR_CLEANUP
|
||||||
LOCKED_PROJECTS_FOR_CLEANUP = "#{REDIS_MAIN_KEY}locked-projects-for-cleanup"
|
LOCKED_REPOSITORIES
|
||||||
|
LOCKED_REP_AND_PLATFORMS
|
||||||
|
LOCKED_BUILD_LISTS).each do |kind|
|
||||||
LOCKED_REPOSITORIES = "#{REDIS_MAIN_KEY}locked-repositories"
|
const_set kind, "#{REDIS_MAIN_KEY}#{kind.downcase.gsub('_', '-')}"
|
||||||
LOCKED_REP_AND_PLATFORMS = "#{REDIS_MAIN_KEY}locked-repositories-and-platforms"
|
end
|
||||||
LOCKED_BUILD_LISTS = "#{REDIS_MAIN_KEY}locked-build-lists"
|
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@redis = self.redis
|
@redis = self.redis
|
||||||
|
|
Loading…
Reference in New Issue