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:
parent
6f95c49a15
commit
5da4c39782
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue