Sha256: 6fb2e2a1f3f478d91ad7bc14a98431fd952a24cf9a8a000c014a6a7511120791

Contents?: true

Size: 328 Bytes

Versions: 19

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

# Represents an action to set a new recovery point. One possible option for a
# return from an #atomic_phase block.
module AcidicJob
  class RecoveryPoint
    attr_reader :name

    def initialize(name)
      @name = name
    end

    def call(run:)
      run.recover_to!(@name)
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
acidic_job-0.9.0 lib/acidic_job/recovery_point.rb
acidic_job-0.8.8 lib/acidic_job/recovery_point.rb
acidic_job-0.8.7 lib/acidic_job/recovery_point.rb
acidic_job-0.8.5 lib/acidic_job/recovery_point.rb
acidic_job-0.8.4 lib/acidic_job/recovery_point.rb
acidic_job-0.8.3 lib/acidic_job/recovery_point.rb
acidic_job-0.8.2 lib/acidic_job/recovery_point.rb
acidic_job-0.8.1 lib/acidic_job/recovery_point.rb
acidic_job-0.8.0 lib/acidic_job/recovery_point.rb
acidic_job-1.0.0.beta.10 lib/acidic_job/recovery_point.rb
acidic_job-1.0.0.beta.9 lib/acidic_job/recovery_point.rb
acidic_job-1.0.0.beta.8 lib/acidic_job/recovery_point.rb
acidic_job-1.0.0.beta.7 lib/acidic_job/recovery_point.rb
acidic_job-1.0.0.beta.6 lib/acidic_job/recovery_point.rb
acidic_job-1.0.0.beta.5 lib/acidic_job/recovery_point.rb
acidic_job-1.0.0.beta.4 lib/acidic_job/recovery_point.rb
acidic_job-1.0.0.beta.3 lib/acidic_job/recovery_point.rb
acidic_job-1.0.0.beta.2 lib/acidic_job/recovery_point.rb
acidic_job-1.0.0.beta.1 lib/acidic_job/recovery_point.rb