2009-02-16 03:24:10 +00:00
|
|
|
unless defined?(Whenever)
|
|
|
|
$:.unshift(File.dirname(__FILE__))
|
|
|
|
|
|
|
|
# Hoping to load Rails' Rakefile
|
|
|
|
begin
|
|
|
|
load 'Rakefile'
|
|
|
|
rescue LoadError => e
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2009-02-17 19:22:18 +00:00
|
|
|
# Dependencies
|
2009-02-16 03:24:10 +00:00
|
|
|
require 'activesupport'
|
|
|
|
require 'chronic'
|
|
|
|
|
2009-02-17 19:22:18 +00:00
|
|
|
# Whenever files
|
2009-02-16 03:24:10 +00:00
|
|
|
require 'base'
|
2009-02-17 05:46:22 +00:00
|
|
|
require 'version'
|
2009-02-17 00:22:37 +00:00
|
|
|
require 'job_list'
|
|
|
|
require 'job_types/default'
|
|
|
|
require 'job_types/rake_task'
|
|
|
|
require 'job_types/runner'
|
|
|
|
require 'outputs/cron'
|