forked from toolshed/abra
		
	| @ -59,6 +59,11 @@ EXAMPLE: | |||||||
| 			log.Fatal("cannot use <version> and --chaos together") | 			log.Fatal("cannot use <version> and --chaos together") | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|  | 		if specificVersion != "" { | ||||||
|  | 			log.Debugf("overriding env file version (%s) with %s", app.Recipe.Version, specificVersion) | ||||||
|  | 			app.Recipe.Version = specificVersion | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 		if specificVersion == "" && app.Recipe.Version != "" { | 		if specificVersion == "" && app.Recipe.Version != "" { | ||||||
| 			log.Debugf("retrieved %s as version from env file", app.Recipe.Version) | 			log.Debugf("retrieved %s as version from env file", app.Recipe.Version) | ||||||
| 			specificVersion = app.Recipe.Version | 			specificVersion = app.Recipe.Version | ||||||
|  | |||||||
| @ -53,6 +53,12 @@ EXAMPLE: | |||||||
| 		app := internal.ValidateApp(c) | 		app := internal.ValidateApp(c) | ||||||
| 		stackName := app.StackName() | 		stackName := app.StackName() | ||||||
|  |  | ||||||
|  | 		specificVersion := c.Args().Get(1) | ||||||
|  | 		if specificVersion != "" { | ||||||
|  | 			log.Debugf("overriding env file version (%s) with %s", app.Recipe.Version, specificVersion) | ||||||
|  | 			app.Recipe.Version = specificVersion | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 		if err := app.Recipe.Ensure(internal.Chaos, internal.Offline); err != nil { | 		if err := app.Recipe.Ensure(internal.Chaos, internal.Offline); err != nil { | ||||||
| 			log.Fatal(err) | 			log.Fatal(err) | ||||||
| 		} | 		} | ||||||
| @ -88,8 +94,6 @@ EXAMPLE: | |||||||
| 			warnMessages = append(warnMessages, fmt.Sprintf("failed to determine deployed version of %s", app.Name)) | 			warnMessages = append(warnMessages, fmt.Sprintf("failed to determine deployed version of %s", app.Name)) | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		specificVersion := c.Args().Get(1) |  | ||||||
|  |  | ||||||
| 		if specificVersion != "" { | 		if specificVersion != "" { | ||||||
| 			parsedDeployedVersion, err := tagcmp.Parse(deployMeta.Version) | 			parsedDeployedVersion, err := tagcmp.Parse(deployMeta.Version) | ||||||
| 			if err != nil { | 			if err != nil { | ||||||
|  | |||||||
| @ -53,6 +53,12 @@ EXAMPLE: | |||||||
| 		app := internal.ValidateApp(c) | 		app := internal.ValidateApp(c) | ||||||
| 		stackName := app.StackName() | 		stackName := app.StackName() | ||||||
|  |  | ||||||
|  | 		specificVersion := c.Args().Get(1) | ||||||
|  | 		if specificVersion != "" { | ||||||
|  | 			log.Debugf("overriding env file version (%s) with %s", app.Recipe.Version, specificVersion) | ||||||
|  | 			app.Recipe.Version = specificVersion | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 		if err := app.Recipe.Ensure(internal.Chaos, internal.Offline); err != nil { | 		if err := app.Recipe.Ensure(internal.Chaos, internal.Offline); err != nil { | ||||||
| 			log.Fatal(err) | 			log.Fatal(err) | ||||||
| 		} | 		} | ||||||
| @ -88,7 +94,6 @@ EXAMPLE: | |||||||
| 			warnMessages = append(warnMessages, fmt.Sprintf("failed to determine deployed version of %s", app.Name)) | 			warnMessages = append(warnMessages, fmt.Sprintf("failed to determine deployed version of %s", app.Name)) | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		specificVersion := c.Args().Get(1) |  | ||||||
| 		if specificVersion != "" { | 		if specificVersion != "" { | ||||||
| 			parsedDeployedVersion, err := tagcmp.Parse(deployMeta.Version) | 			parsedDeployedVersion, err := tagcmp.Parse(deployMeta.Version) | ||||||
| 			if err != nil { | 			if err != nil { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user