Method: Whenever::CommandLine#run

Defined in:
lib/whenever/command_line.rb

#runObject



25
26
27
28
29
30
31
32
33
34
# File 'lib/whenever/command_line.rb', line 25

def run
  if @options[:update]
    write_crontab(updated_crontab)
  elsif @options[:write]
    write_crontab(whenever_cron)
  else
    puts Whenever.cron(@options)
    exit(0)
  end
end