6855e6b586
These changes make the code more reusable, testable, and most importantly, overrideable.
21 lines
380 B
Ruby
21 lines
380 B
Ruby
# frozen_string_literal: true
|
|
|
|
module SystemCheck
|
|
module RakeTask
|
|
# Used by gitlab:orphans:check rake task
|
|
class OrphansTask
|
|
extend RakeTaskHelpers
|
|
|
|
def self.name
|
|
'Orphans'
|
|
end
|
|
|
|
def self.checks
|
|
[
|
|
SystemCheck::Orphans::NamespaceCheck,
|
|
SystemCheck::Orphans::RepositoryCheck
|
|
]
|
|
end
|
|
end
|
|
end
|
|
end
|