whenever/lib/whenever.rb

27 lines
465 B
Ruby
Raw Normal View History

2009-02-16 03:24:10 +00:00
require 'chronic'
require 'active_support/all'
2011-05-25 02:07:14 +00:00
require 'thread'
2009-02-16 03:24:10 +00:00
2009-10-20 17:42:09 +00:00
require 'whenever/job_list'
require 'whenever/job'
require 'whenever/cron'
require 'whenever/output_redirection'
2009-10-20 17:42:09 +00:00
require 'whenever/command_line'
2010-10-26 00:41:57 +00:00
require 'whenever/version'
module Whenever
def self.cron(options)
Whenever::JobList.new(options).generate_cron_output
end
def self.path
Dir.pwd
end
def self.rails3?
File.exists?(File.join(path, 'script', 'rails'))
end
end