refactor: use framework for running function against all apps
This commit is contained in:
@@ -43,13 +43,13 @@ func RunCommandAgainstAllApps(command ParallelCommand, commandName string, paral
|
||||
}
|
||||
|
||||
if runInSerial {
|
||||
return runCommandAgainstAllAppsSerially(command, commandName)
|
||||
return RunCommandAgainstAllAppsSerially(command, commandName)
|
||||
}
|
||||
|
||||
return runCommandAgainstAllAppsInParallel(command, commandName, parallelCount)
|
||||
return RunCommandAgainstAllAppsInParallel(command, commandName, parallelCount)
|
||||
}
|
||||
|
||||
func runCommandAgainstAllAppsInParallel(command ParallelCommand, commandName string, parallelCount int) error {
|
||||
func RunCommandAgainstAllAppsInParallel(command ParallelCommand, commandName string, parallelCount int) error {
|
||||
apps, err := DokkuApps()
|
||||
if err != nil {
|
||||
LogWarn(err.Error())
|
||||
@@ -68,7 +68,7 @@ func runCommandAgainstAllAppsInParallel(command ParallelCommand, commandName str
|
||||
return err
|
||||
}
|
||||
|
||||
func runCommandAgainstAllAppsSerially(command ParallelCommand, commandName string) error {
|
||||
func RunCommandAgainstAllAppsSerially(command ParallelCommand, commandName string) error {
|
||||
apps, err := DokkuApps()
|
||||
if err != nil {
|
||||
LogWarn(err.Error())
|
||||
|
||||
Reference in New Issue
Block a user