Method: Bundler::Retry#initialize
- Defined in:
- lib/bundler/retry.rb
#initialize(name, exceptions = nil, retries = self.class.default_retries) ⇒ Retry
Returns a new instance of Retry.
19 20 21 22 23 24 |
# 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 |