Sha256: ee01c5b7c69d68b3c247748ee51796ec599c4f22d26a301d1bf917da0c3e751a

Contents?: true

Size: 636 Bytes

Versions: 2

Compression:

Stored size: 636 Bytes

Contents

require 'greenjaguar/version'
require 'greenjaguar/strategies/wait_strategy'
require 'greenjaguar/strategies/default_wait_strategy'
require 'greenjaguar/strategies/fibonacci_strategy'
require 'greenjaguar/strategies/exponential_backoff_strategy'
require 'greenjaguar/strategies/fixed_interval_strategy'
require 'greenjaguar/policy_builder'
require 'greenjaguar/retrier'

module Greenjaguar

  def self.included(klass)
    klass.extend(ClassMethods)
  end

  module ClassMethods
    def build_policy(&block)
      PolicyBuilder.new(&block)
    end

    def robust_retry(policy, &block)
      Retrier.new(policy, &block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
greenjaguar-0.0.4 lib/greenjaguar.rb
greenjaguar-0.0.3 lib/greenjaguar.rb