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
eb_deployer-0.5.1.beta1 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.5.0 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.13 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.12 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.11 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.10 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.9 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.8 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.7.beta1 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.6 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.5 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.4 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.4.beta7 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.4.beta6 lib/eb_deployer/throttling_handling.rb
eb_deployer-0.4.4.beta5 lib/eb_deployer/throttling_handling.rb