Class: CIHelper::Commands::CheckSidekiqSchedulerConfig

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/ci_helper/commands/check_sidekiq_scheduler_config.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

call!, #execute, #execute_with_env, #initialize, process_stdout

Constructor Details

This class inherits a constructor from CIHelper::Commands::BaseCommand

Instance Method Details

#callObject



8
9
10
11
12
13
14
15
# File 'lib/ci_helper/commands/check_sidekiq_scheduler_config.rb', line 8

def call
  return 0 if job_constants.empty?

  create_and_migrate_database! if with_database?
  cmd = craft_jobs_const_get_cmd
  execute_with_rails_runner(cmd)
  0
end