require ‘routinized’ Dir[File.dirname(__FILE__) + ‘/wrappers/*.rb’].each {|file| require file } set :output, “#{Dir.home}/.cron_whenever.log”

# Morning Routine # # Go to WORK! every :weekday, :at => ‘8:00am’ do

command say 'Go to Work'
command itunes_play('Rush',"World",'Working Man')

end

every :weekday, :at => ‘8:45am’ do

command r('rss','https://news.ycombinator.com/rss') + top(10) + pipe + osx_notify('Hacker News')

end

# Stretch Break every 30 minutes during the work week every ‘*/30 9-16 * * 1-5’ do

command osx_notify('Stretch',"Take a short break and stretch")

end

# Pushups! every :weekday, :at => ‘10:00am’ do

command sleep(10) + say('Time for pushups')
command osx_notify('Pushups','Do pushups')

end

# Lunch! every :weekday, :at => ‘12:00pm’ do

command say 'Time for Lunch'
command osx_notify('Lunch','Time to eat some food')

end

# Stop Working every :weekday, :at => ‘5:15pm’ do

command say 'Good work Zack, go home'
command itunes_play('Rush','Rio','Spirit')
command osx_notify('Go Home','Time to stop working dear chap.')

end

# Clean out log file, good citizenship! every :day do

command "/bin/rm #{Dir.home}/.cron_whenever.log"

end