impress/config/schedule.rb

17 lines
401 B
Ruby
Raw Normal View History

2010-11-27 15:59:35 -08:00
# Learn more: http://github.com/javan/whenever
RVM_RUBY = 'ruby-1.9.2@impress'
set :job_template, "bash -l -c 'rvm use #{RVM_RUBY} && :job'"
job_type :runner, "cd :path && rails runner -e :environment ':task' :output"
2010-11-27 15:59:35 -08:00
env :MAILTO, 'webmaster@openneo.net'
every :day do
runner "Item.spider_mall\\!"
2010-11-27 15:59:35 -08:00
end
ItemsLimit = 20
2010-11-27 15:59:35 -08:00
every :hour do
runner "Item.spider_mall_assets\\!\\(#{ItemsLimit}\\)"
2010-11-27 15:59:35 -08:00
end