whenever/lib/whenever.rb
2009-11-30 14:45:03 -05:00

31 lines
871 B
Ruby

require 'chronic'
# Hoping to load Rails' Rakefile
begin
load 'Rakefile'
rescue LoadError
nil
end
# If Rails' rakefile was loaded than so was active_support, but
# 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
require 'active_support'
rescue LoadError
warn 'To user Whenever you need the active_support gem:'
warn '$ sudo gem install active_support'
exit(1)
end
# Whenever files
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'
require 'whenever/version'