Module: SidekiqAdminEnquerer::WebApp::AppControl Private
- Defined in:
- lib/sidekiq_admin_enquerer/web_app/app_control.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .find_job(job_name) ⇒ SidekiqAdminEnquerer::WebApp::JobWrapper private
- .jobs ⇒ Array<SidekiqAdminEnquerer::WebApp::JobWrapper> private
- .run_job(job_run_params) ⇒ void private
Class Method Details
.find_job(job_name) ⇒ SidekiqAdminEnquerer::WebApp::JobWrapper
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/sidekiq_admin_enquerer/web_app/app_control.rb', line 21 def find_job(job_name) SidekiqAdminEnquerer.find_job(job_name).yield_self { JobWrapper.new(_1) } end |
.jobs ⇒ Array<SidekiqAdminEnquerer::WebApp::JobWrapper>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/sidekiq_admin_enquerer/web_app/app_control.rb', line 12 def jobs SidekiqAdminEnquerer.jobs.map { JobWrapper.new(_1) } end |
.run_job(job_run_params) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
30 31 32 33 34 |
# File 'lib/sidekiq_admin_enquerer/web_app/app_control.rb', line 30 def run_job(job_run_params) job_name = job_run_params[:job_name] job_klass = SidekiqAdminEnquerer.find_job(job_name) SidekiqAdminEnquerer.run_job(job_klass, job_run_params) end |