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-03-06 01:28:36 +00:00
|
|
|
%w{
|
|
|
|
base
|
|
|
|
version
|
|
|
|
job_list
|
|
|
|
job_types/default
|
|
|
|
job_types/rake_task
|
|
|
|
job_types/runner
|
|
|
|
outputs/cron
|
|
|
|
command_line
|
|
|
|
}.each { |file| require File.expand_path(File.dirname(__FILE__) + "/#{file}") }
|