Sha256: c1b644ba97c418772ad1d23d3f1cc370214498d6dc744af5433d7bd8750c2ee0
Contents?: true
Size: 331 Bytes
Versions: 2
Compression:
Stored size: 331 Bytes
Contents
require 'thor' module GoodJob class CLI < Thor RAILS_ENVIRONMENT_RB = File.expand_path("config/environment.rb") desc :start, "Start jobs" def start require RAILS_ENVIRONMENT_RB scheduler = GoodJob::Scheduler.new Kernel.loop do sleep 1 end end default_task :start end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
good_job-0.2.0 | lib/good_job/cli.rb |
good_job-0.1.0 | lib/good_job/cli.rb |