module Whenever
Constants
- VERSION
Public Class Methods
bin_rails?()
click to toggle source
# File lib/whenever.rb, line 23 def self.bin_rails? File.exist?(File.join(path, 'bin', 'rails')) end
bundler?()
click to toggle source
# File lib/whenever.rb, line 31 def self.bundler? File.exist?(File.join(path, 'Gemfile')) end
cron(options)
click to toggle source
# File lib/whenever.rb, line 11 def self.cron(options) Whenever::JobList.new(options).generate_cron_output end
path()
click to toggle source
# File lib/whenever.rb, line 19 def self.path Dir.pwd end
script_rails?()
click to toggle source
# File lib/whenever.rb, line 27 def self.script_rails? File.exist?(File.join(path, 'script', 'rails')) end
seconds(number, units)
click to toggle source
# File lib/whenever.rb, line 15 def self.seconds(number, units) Whenever::NumericSeconds.seconds(number, units) end