25 lines
403 B
Ruby
25 lines
403 B
Ruby
unless defined?(Whenever)
|
|
$:.unshift(File.dirname(__FILE__))
|
|
|
|
# Hoping to load Rails' Rakefile
|
|
begin
|
|
load 'Rakefile'
|
|
rescue LoadError => e
|
|
nil
|
|
end
|
|
|
|
# Load Whenever's rake tasks
|
|
begin
|
|
Dir[File.join(File.dirname(__FILE__), 'tasks', '*.rake')].each { |rake| load rake }
|
|
rescue LoadError => e
|
|
nil
|
|
end
|
|
|
|
end
|
|
|
|
|
|
require 'activesupport'
|
|
require 'chronic'
|
|
|
|
require 'base'
|