2009-02-16 03:24:10 +00:00
|
|
|
module Whenever
|
2009-02-17 00:54:40 +00:00
|
|
|
VERSION = '0.1.1'
|
2009-02-16 03:24:10 +00:00
|
|
|
|
|
|
|
def self.cron(options)
|
|
|
|
Whenever::JobList.new(options).generate_cron_output
|
|
|
|
end
|
2009-02-17 00:22:37 +00:00
|
|
|
|
|
|
|
def self.path
|
|
|
|
if defined?(RAILS_ROOT)
|
|
|
|
RAILS_ROOT
|
|
|
|
elsif defined?(::RAILS_ROOT)
|
|
|
|
::RAILS_ROOT
|
|
|
|
end
|
|
|
|
end
|
2009-02-16 03:24:10 +00:00
|
|
|
end
|