Class: Kiba::Extend::Utils::IterativeCleanupJobRegistrar
- Inherits:
-
Object
- Object
- Kiba::Extend::Utils::IterativeCleanupJobRegistrar
- Defined in:
- lib/kiba/extend/utils/iterative_cleanup_job_registrar.rb
Overview
Adds jobs defined by Mixins::IterativeCleanup to registry
Class Method Summary collapse
Instance Method Summary collapse
-
#call ⇒ Object
-
#initialize ⇒ IterativeCleanupJobRegistrar
constructor
A new instance of IterativeCleanupJobRegistrar.
Constructor Details
#initialize ⇒ IterativeCleanupJobRegistrar
Returns a new instance of IterativeCleanupJobRegistrar.
15 16 17 |
# File 'lib/kiba/extend/utils/iterative_cleanup_job_registrar.rb', line 15 def initialize @to_register = gather end |
Class Method Details
.call ⇒ Object
11 12 13 |
# File 'lib/kiba/extend/utils/iterative_cleanup_job_registrar.rb', line 11 def self.call new.call end |
Instance Method Details
#call ⇒ Object
19 20 21 22 23 24 |
# File 'lib/kiba/extend/utils/iterative_cleanup_job_registrar.rb', line 19 def call puts "Registering iterative cleanup jobs" to_register.each do |mod| mod.register_cleanup_jobs end end |