Sha256: 9118c47e2ab05ef27ca3d907b7f6127f614bb91e713d9c31cd6f0b42f1f9f2ae

Contents?: true

Size: 400 Bytes

Versions: 35

Compression:

Stored size: 400 Bytes

Contents

module EbDeployer
  class ThrottlingHandling
    include Utils

    def initialize(delegatee, throttling_error)
      @delegatee = delegatee
      @throttling_error = throttling_error
    end

    def method_missing(method, *args, &block)
      super unless @delegatee.respond_to?(method)
      backoff(@throttling_error) do
        @delegatee.send(method, *args, &block)
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
man_eb_deployer-0.8.0 lib/eb_deployer/throttling_handling.rb
eb_deployer_updated-0.8.1 lib/eb_deployer/throttling_handling.rb
eb_deployer_updated-0.8.0 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.7.0 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.6 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.5 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.4 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.3 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.2 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.1 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.0 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.0.beta6 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.0.beta5 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.0.beta4 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.0.beta3 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.0.beta2 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.5.2 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.6.0.beta1 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.5.1.beta3 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.5.1.beta2 lib/eb_deployer/throttling_handling.rb