starting Resque

This commit is contained in:
Matthew K. Fu JuYuan authored and Christophe Vilayphiou committed 2012-05-08 11:41:58 +08:00
1 parent ba4385e3fd
commit 7339d1ee4a
11 files changed
+114 -11

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
require 'open-uri'
require 'nokogiri'
module FetchTime
@queue = :fetch_time
def self.perform()
sleep 10
doc = Nokogiri::HTML(open('http://www.timeanddate.com/worldclock/city.html?n=241'))
CronMail.time_check(doc.at('#ct').children.first.text).deliver
end
end