1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Make the reaper slightly more robust in the nudging department

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-09-19 16:40:53 +00:00
parent 6f95c49a15
commit 5da4c39782

View file

@ -6,7 +6,13 @@ require 'uri'
def nudge(url, iterations) def nudge(url, iterations)
print "Nudging #{url}: " print "Nudging #{url}: "
iterations.times { Net::HTTP.get_response(URI.parse(url)); print "."; STDOUT.flush }
iterations.times do
Net::HTTP.get_response(URI.parse(url)) rescue nil
print "."
STDOUT.flush
end
puts puts
end end