summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-05-28 10:05:07 +0200
committermguetlein <martin.guetlein@gmail.com>2010-05-28 10:05:07 +0200
commitefca5a3b1b418dab73a914f52ab241c8472d2f4c (patch)
tree9be44888e31cd90b5f84860a3174f0ee3cfc722e /lib
parent576007f75c8fe7e6f7e76706ee9bc2ada6da08ca (diff)
new wrapper version, remove try_again
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/utils.rb b/lib/utils.rb
index 28e114e..741fbd6 100644
--- a/lib/utils.rb
+++ b/lib/utils.rb
@@ -29,23 +29,6 @@ module OpenTox
end
end
- def self.try_again(times=25)
- count = 0
- while (true)
- begin
- return yield
- rescue => ex
- count += 1
- if count<times
- LOGGER.warn "failed ("+count.to_s+"), try again in a second : "+ex.message
- sleep 1
- else
- raise ex
- end
- end
- end
- end
-
end
# ['rubygems', 'rest_client'].each do |r|