class EbDeployer::ThrottlingHandling
Public Class Methods
new(delegatee, throttling_error)
click to toggle source
# File lib/eb_deployer/throttling_handling.rb, line 5 def initialize(delegatee, throttling_error) @delegatee = delegatee @throttling_error = throttling_error end
Public Instance Methods
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/eb_deployer/throttling_handling.rb, line 10 def method_missing(method, *args, &block) super unless @delegatee.respond_to?(method) backoff(@throttling_error) do @delegatee.send(method, *args, &block) end end