Sha256: 86765c6fbfe5034af22cf2ce2c9307a110935556de443ecdc50d613b3abd19bf

Contents?: true

Size: 371 Bytes

Versions: 9

Compression:

Stored size: 371 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.add_status(Status::COMPLETE)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
light-service-ext-0.1.11 lib/light-service-ext/all_actions_complete_action.rb
light-service-ext-0.1.10 lib/light-service-ext/all_actions_complete_action.rb
light-service-ext-0.1.9 lib/light-service-ext/all_actions_complete_action.rb
light-service-ext-0.1.8 lib/light-service-ext/all_actions_complete_action.rb
light-service-ext-0.1.7 lib/light-service-ext/all_actions_complete_action.rb
light-service-ext-0.1.6 lib/light-service-ext/all_actions_complete_action.rb
light-service-ext-0.1.5 lib/light-service-ext/all_actions_complete_action.rb
light-service-ext-0.1.4 lib/light-service-ext/all_actions_complete_action.rb
light-service-ext-0.1.3 lib/light-service-ext/all_actions_complete_action.rb