Skip to content

Instantly share code, notes, and snippets.

@joseustra
Created March 11, 2011 05:35
Show Gist options
  • Save joseustra/865491 to your computer and use it in GitHub Desktop.
Save joseustra/865491 to your computer and use it in GitHub Desktop.
gem 'rufus-scheduler'
require 'rake'
require 'rufus/scheduler'
class TaskScheduler
scheduler = Rufus::Scheduler.start_new
scheduler.every("10m") { Post.new.clearPosts }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment