2009-02-16 03:24:10 +00:00
|
|
|
require 'chronic'
|
|
|
|
|
2010-05-26 09:39:54 +00:00
|
|
|
# # Hoping to load Rails' Rakefile
|
|
|
|
# begin
|
|
|
|
# load 'Rakefile'
|
|
|
|
# rescue LoadError
|
|
|
|
# nil
|
|
|
|
# end
|
2009-10-20 17:42:09 +00:00
|
|
|
|
2009-11-30 19:45:03 +00:00
|
|
|
# If Rails' rakefile was loaded than so was active_support, but
|
2009-06-26 01:37:23 +00:00
|
|
|
# if this is being used in a non-rails enviroment we need to require it.
|
|
|
|
# It was previously defined as a dependency of this gem, but that became
|
|
|
|
# problematic. See: http://github.com/javan/whenever/issues#issue/1
|
|
|
|
begin
|
2010-04-26 14:48:50 +00:00
|
|
|
require 'active_support/all'
|
2009-10-20 17:42:09 +00:00
|
|
|
rescue LoadError
|
2010-04-26 14:48:50 +00:00
|
|
|
warn 'To use Whenever you need the active_support gem:'
|
|
|
|
warn '$ gem install activesupport'
|
2009-06-26 01:37:23 +00:00
|
|
|
exit(1)
|
|
|
|
end
|
|
|
|
|
2009-02-17 19:22:18 +00:00
|
|
|
# Whenever files
|
2009-10-20 17:42:09 +00:00
|
|
|
require 'whenever/base'
|
|
|
|
require 'whenever/job_list'
|
|
|
|
require 'whenever/job_types/default'
|
|
|
|
require 'whenever/job_types/rake_task'
|
|
|
|
require 'whenever/job_types/runner'
|
|
|
|
require 'whenever/outputs/cron'
|
|
|
|
require 'whenever/outputs/cron/output_redirection'
|
|
|
|
require 'whenever/command_line'
|
2009-10-20 19:54:09 +00:00
|
|
|
require 'whenever/version'
|