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.

Since:

  • 0.1.0

Class Method Summary collapse

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.

Parameters:

  • job_name (String)

Returns:

Since:

  • 0.1.0



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

.jobsArray<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.

Returns:

Since:

  • 0.1.0



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.

Parameters:

  • job_run_params (Hash<Symbol,Any>)

Since:

  • 0.1.0



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