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.

Returns:

See Also:

'--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)


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