Sha256: edee85bba8c92dbd333a1cd63e604446debbf553d1a24b57b724d2244f5c722d
Contents?: true
Size: 311 Bytes
Versions: 1
Compression:
Stored size: 311 Bytes
Contents
module Whenever class JobsController < Web.config.parent_controller def index @crontab = CommandLine.new.send(:read_crontab) end def run runner = JobRunner.new(params[:id]) runner.run redirect_to jobs_path, notice: t('.success', command: runner.command) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whenever-web-0.0.5 | app/controllers/whenever/jobs_controller.rb |