func ValidateDirectories()

in helpers/foundation-deployer/stages/validate.go [33:43]


func ValidateDirectories(g GlobalTFVars) error {
	_, err := os.Stat(g.FoundationCodePath)
	if os.IsNotExist(err) {
		return fmt.Errorf("Stopping execution, FoundationCodePath directory '%s' does not exits\n", g.FoundationCodePath)
	}
	_, err = os.Stat(g.CodeCheckoutPath)
	if os.IsNotExist(err) {
		return fmt.Errorf("Stopping execution, CodeCheckoutPath directory '%s' does not exits\n", g.CodeCheckoutPath)
	}
	return nil
}