Adding scheduler.rake for heroku

This commit is contained in:
Tyler Renelle 2012-02-13 17:34:35 -05:00
parent e5aabf4ab8
commit 81f8214700
3 changed files with 6 additions and 3 deletions

View file

@ -36,7 +36,6 @@ gem 'jquery-rails'
gem 'devise', '>= 2.0'
gem 'whenever'
gem "acts_as_list"
gem 'web-app-theme', :git => 'https://github.com/pilu/web-app-theme.git'
gem 'rails-backbone'
gem 'heroku'

View file

@ -36,7 +36,6 @@ GEM
activesupport (3.2.1)
i18n (~> 0.6)
multi_json (~> 1.0)
acts_as_list (0.1.4)
addressable (2.2.6)
arel (3.0.0)
bcrypt-ruby (3.0.1)
@ -149,7 +148,6 @@ PLATFORMS
ruby
DEPENDENCIES
acts_as_list
coffee-rails (~> 3.2.1)
devise (>= 2.0)
heroku

6
lib/tasks/scheduler.rake Normal file
View file

@ -0,0 +1,6 @@
desc "This task is called by the Heroku scheduler add-on"
task :clear_done => :environment do
puts "Clearing users' completed daily tasks, and docking points for incompletes..."
Habit.clear_done
puts "done."
end