Module: ResqueWeb::Plugins::ResqueScheduler

Defined in:
lib/resque_web/plugins/resque_scheduler/engine.rb,
app/models/resque_web/plugins/resque_scheduler/job_finder.rb,
app/helpers/resque_web/plugins/resque_scheduler/delayed_helper.rb,
app/helpers/resque_web/plugins/resque_scheduler/schedules_helper.rb,
app/controllers/resque_web/plugins/resque_scheduler/delayed_controller.rb,
app/controllers/resque_web/plugins/resque_scheduler/schedules_controller.rb,
app/models/resque_web/plugins/resque_scheduler/job_finder/working_job_finder.rb,
app/models/resque_web/plugins/resque_scheduler/active_job_wrapper_timestamp_finder.rb

Defined Under Namespace

Modules: DelayedHelper, SchedulesHelper Classes: ActiveJobWrapperTimestampFinder, DelayedController, Engine, JobFinder, SchedulesController

Class Method Summary collapse

Class Method Details

.engine_pathString

provides the path where the engine will live. This is appended after the main resque-web path.

Returns:

  • (String)


35
36
37
# File 'lib/resque_web/plugins/resque_scheduler/engine.rb', line 35

def self.engine_path
  '/scheduler'
end

.tabsArray

Tells Resque web what extra tabs to ass to the main navigation at the top of the resque-web interface.

Returns:

  • (Array)


43
44
45
46
47
48
49
50
# File 'lib/resque_web/plugins/resque_scheduler/engine.rb', line 43

def self.tabs
  [
    {
      'schedule' => Engine.app.url_helpers.schedules_path,
      'delayed' => Engine.app.url_helpers.delayed_path
    }
  ]
end