@@ -52,7 +52,7 @@ const (
52
52
applyNamespaceAppRoutesOpt = "apply-namespace-app-routes"
53
53
applyNamespaceAsSuffix = "apply-namespace-as-suffix"
54
54
maxNamespaceSize = 36
55
- shouldPreserveOldApps = "preserve-old -apps"
55
+ shouldBackupExistingApps = "backup-existing -apps"
56
56
)
57
57
58
58
type listFlag struct {
@@ -146,7 +146,7 @@ func (c *DeployCommand) GetPluginCommand() plugin.Command {
146
146
util .GetShortOption (uploadTimeoutOpt ): "Upload app timeout in seconds" ,
147
147
util .GetShortOption (taskExecutionTimeoutOpt ): "Task execution timeout in seconds" ,
148
148
util .CombineFullAndShortParameters (startTimeoutOpt , timeoutOpt ): "Start app timeout in seconds" ,
149
- util .GetShortOption (shouldPreserveOldApps ): "Should preserve old applications (only for blue-green)" ,
149
+ util .GetShortOption (shouldBackupExistingApps ): "Should backup existing applications (only for blue-green)" ,
150
150
},
151
151
},
152
152
}
@@ -172,7 +172,7 @@ func deployProcessParametersSetter() ProcessParametersSetter {
172
172
processBuilder .Parameter ("appsStageTimeout" , GetStringOpt (stageTimeoutOpt , flags ))
173
173
processBuilder .Parameter ("appsUploadTimeout" , GetStringOpt (uploadTimeoutOpt , flags ))
174
174
processBuilder .Parameter ("appsTaskExecutionTimeout" , GetStringOpt (taskExecutionTimeoutOpt , flags ))
175
- processBuilder .Parameter ("shouldPreserveOldApps " , strconv .FormatBool (GetBoolOpt (shouldPreserveOldApps , flags )))
175
+ processBuilder .Parameter ("shouldBackupExistingApps " , strconv .FormatBool (GetBoolOpt (shouldBackupExistingApps , flags )))
176
176
177
177
var lastSetValue string = ""
178
178
for i := 0 ; i < len (os .Args ); i ++ {
@@ -226,7 +226,7 @@ func (c *DeployCommand) defineCommandOptions(flags *flag.FlagSet) {
226
226
flags .String (stageTimeoutOpt , "" , "" )
227
227
flags .String (uploadTimeoutOpt , "" , "" )
228
228
flags .String (taskExecutionTimeoutOpt , "" , "" )
229
- flags .Bool (shouldPreserveOldApps , false , "" )
229
+ flags .Bool (shouldBackupExistingApps , false , "" )
230
230
}
231
231
232
232
func (c * DeployCommand ) executeInternal (positionalArgs []string , dsHost string , flags * flag.FlagSet , cfTarget util.CloudFoundryTarget ) ExecutionStatus {
0 commit comments