rails' cron rufus-scheduler

1 installation

  sudo gem install rufus-scheduler --source http://gemcutter.org

2 usage

require 'rubygems'
  require 'rufus/scheduler'

  scheduler = Rufus::Scheduler.start_new
  scheduler.every("10s") do
    run something--
  end

你可能感兴趣的:(rubygems,Rails)