method

new

new(name, exceptions = nil, retries = self.class.default_retries)
public

No documentation available.

# File lib/bundler/retry.rb, line 19
    def initialize(name, exceptions = nil, retries = self.class.default_retries)
      @name = name
      @retries = retries
      @exceptions = Array(exceptions) || []
      @total_runs = @retries + 1 # will run once, then upto attempts.times
    end