Sha256: ed7b679876b8d7930937bb764d3da6beab551c6c321c84fb52c5f205974c774e

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true

module LightServiceExt
  class AllActionsCompleteAction < ApplicationAction
    executed do |context|
      raise_error =
        context.allow_raise_on_failure? &&
        (context.failure? || context.errors.present?)

      raise ContextError.new(ctx: context) if raise_error

      context[:outcome] = Outcome::COMPLETE
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
light-service-ext-0.1.2 lib/light-service-ext/all_actions_complete_action.rb
light-service-ext-0.1.1 lib/light-service-ext/all_actions_complete_action.rb
light-service-ext-0.1.0 lib/light-service-ext/all_actions_complete_action.rb