diff options
Diffstat (limited to 'railties/bin')
-rwxr-xr-x | railties/bin/process/reaper | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/railties/bin/process/reaper b/railties/bin/process/reaper index 819cd0d4d9..0ab5bbbb8a 100755 --- a/railties/bin/process/reaper +++ b/railties/bin/process/reaper @@ -6,7 +6,13 @@ require 'uri' def nudge(url, iterations) 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 end |