whenever/lib/base.rb

15 lines
243 B
Ruby
Raw Permalink Normal View History

2009-02-16 03:24:10 +00:00
module Whenever
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
2009-02-16 03:24:10 +00:00
end