Class: AwsDevUtils::RetryWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-dev-utils/retry_wrapper.rb

Instance Method Summary collapse

Constructor Details

#initialize(client, max_tries = 5) ⇒ RetryWrapper

Initialize a new RetryWrapper, internal use only

Parameters:

  • max_tries (Integer) (defaults to: 5)
    • max number of retries



7
8
9
10
# File 'lib/aws-dev-utils/retry_wrapper.rb', line 7

def initialize client, max_tries=5
  @client = client
  @max_tries = max_tries
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &block) ⇒ Object



12
13
14
# File 'lib/aws-dev-utils/retry_wrapper.rb', line 12

def method_missing m, *args, &block
  do_call(m,*args,&block)
end