26 lines
951 B
Go
26 lines
951 B
Go
package lifecycle
|
|
|
|
// RequiresCloneURL implements orchestrator/executor.ExecutorTypeCapabilities.
|
|
func (m *Manager) RequiresCloneURL(executorType string) bool {
|
|
backend, err := m.getExecutorBackend(executorType)
|
|
if err != nil {
|
|
return false
|
|
}
|
|
return backend.RequiresCloneURL()
|
|
}
|
|
|
|
// ShouldApplyPreferredShell implements orchestrator/executor.ExecutorTypeCapabilities.
|
|
func (m *Manager) ShouldApplyPreferredShell(executorType string) bool {
|
|
backend, err := m.getExecutorBackend(executorType)
|
|
if err != nil {
|
|
return false
|
|
}
|
|
return backend.ShouldApplyPreferredShell()
|
|
}
|
|
|
|
// SupportsRepositoryCheckoutOptions advertises only managed preparation paths.
|
|
func (m *Manager) SupportsRepositoryCheckoutOptions(executorType, prepareScript string) (bool, bool) {
|
|
supported := (executorType == "worktree" || executorType == "local_docker") && (prepareScript == "" || prepareScript == DefaultPrepareScript(executorType))
|
|
return supported, supported
|
|
}
|