Module: Lich::Common::SagaLaunchPolicy

Defined in:
documented/common/saga_launch_policy.rb

Overview

Defines launch-ownership combinations accepted by Saga entry points.

Constant Summary collapse

CUSTOM_LAUNCH_CONFLICT =

Error message raised when Saga and Custom Launch are used together.

Returns:

  • (String) —

    the conflict error message

'--saga and --custom-launch cannot be used together; Saga launches must use the Saga-managed launch contract.'

Class Method Summary collapse

Class Method Details

.custom_launch_conflict?(frontend:, custom_launch:) ⇒ Boolean

Returns whether a request combines Saga-managed and Custom Launch ownership models.

Parameters:

  • frontend (String, Symbol, nil)
  • custom_launch (String, Symbol, nil)

Returns:

  • (Boolean)


23
24
25
# File 'documented/common/saga_launch_policy.rb', line 23

def custom_launch_conflict?(frontend:, custom_launch:)
  Frontend.canonical_name(frontend) == 'saga' && custom_launch?(custom_launch)
end