Module: Whenever

Defined in:
lib/base.rb,
lib/version.rb,
lib/job_list.rb,
lib/outputs/cron.rb,
lib/job_types/runner.rb,
lib/job_types/default.rb,
lib/job_types/rake_task.rb

Defined Under Namespace

Modules: Job, Output, VERSION Classes: JobList

Class Method Summary collapse

Class Method Details

.cron(options) ⇒ Object



3
4
5
# File 'lib/base.rb', line 3

def self.cron(options)
  Whenever::JobList.new(options).generate_cron_output
end

.pathObject



7
8
9
10
11
12
13
# File 'lib/base.rb', line 7

def self.path
  if defined?(RAILS_ROOT)
    RAILS_ROOT 
  elsif defined?(::RAILS_ROOT)
    ::RAILS_ROOT
  end
end