# File lib/rhc/rest/client.rb, line 403 def attempt(retries, &block) (0..retries).each do |i| yield i < (retries-1), i end raise "Too many retries, giving up." end