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 a script attempts to combine Saga-managed and custom launch ownership models.
'--saga and --custom-launch cannot be used together; Saga launches must use the Saga-managed launch contract.'
Class Method Summary collapse
-
.custom_launch_conflict?(frontend:, custom_launch:) ⇒ Boolean
Returns whether a request combines Saga-managed and Custom Launch ownership models.
Class Method Details
.custom_launch_conflict?(frontend:, custom_launch:) ⇒ Boolean
Returns whether a request combines Saga-managed and Custom Launch ownership models.
25 26 27 |
# File 'documented/common/saga_launch_policy.rb', line 25 def custom_launch_conflict?(frontend:, custom_launch:) Frontend.canonical_name(frontend) == 'saga' && custom_launch?(custom_launch) end |