Skip to content

Commit

Permalink
Rakefile for Heroku cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunks committed Sep 26, 2010
1 parent bd5f8dc commit ec6ce5a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,5 +1,5 @@
source 'http://rubygems.org'

gem 'rake'
gem 'sinatra'
gem 'haml'
gem 'nokogiri'
Expand Down
1 change: 1 addition & 0 deletions Gemfile.lock
Expand Up @@ -53,5 +53,6 @@ DEPENDENCIES
mocha
nokogiri
rack-test
rake
rspec (>= 2.0.0.beta.17)
sinatra
11 changes: 11 additions & 0 deletions Rakefile
@@ -0,0 +1,11 @@
require 'fotologffffffu'
desc "This task is called by the Heroku cron add-on"
task :cron do
cache = Dalli::Client.new('localhost:11211')
users = cache.get 'recent_users'
users.each do |user|
Fotolog.new(user).update_cache
end

end

0 comments on commit ec6ce5a

Please sign in to comment.