15 lines
260 B
Ruby
15 lines
260 B
Ruby
module Whenever
|
|
VERSION = '0.1.0'
|
|
|
|
def self.cron(options)
|
|
Whenever::JobList.new(options).generate_cron_output
|
|
end
|
|
|
|
def self.path
|
|
if defined?(RAILS_ROOT)
|
|
RAILS_ROOT
|
|
elsif defined?(::RAILS_ROOT)
|
|
::RAILS_ROOT
|
|
end
|
|
end
|
|
end |