Class: GoodJob::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/good_job/cli.rb

Overview

Implements the good_job command-line tool, which executes jobs and provides other utilities. The actual entry point is in exe/good_job, but it just sets up and calls this class.

The good_job command-line tool is based on Thor, a CLI framework for Ruby. For more on general usage, see whatisthor.com/ and github.com/erikhuda/thor/wiki.

Constant Summary collapse

RAILS_ENVIRONMENT_RB =

Path to the local Rails application’s environment configuration. Requiring this loads the application’s configuration and classes.

File.expand_path("config/environment.rb")

Instance Method Summary collapse

Instance Method Details

#cleanup_preserved_jobsvoid

This method returns an undefined value.

The good_job cleanup_preserved_jobs command. Deletes preserved job records.



74
# File 'lib/good_job/cli.rb', line 74

desc :cleanup_preserved_jobs, "Deletes preserved job records."

#startvoid

This method returns an undefined value.

The good_job start command. Executes queued jobs.



22
# File 'lib/good_job/cli.rb', line 22

desc :start, "Executes queued jobs."