Function
validateEnvironments
(applyEnvironments []string)
Source from the content-addressed store, hash-verified
| 186 | } |
| 187 | |
| 188 | func validateEnvironments(applyEnvironments []string) { |
| 189 | // Strict for now, we can brainstorm how much we want to support custom environments later |
| 190 | for _, env := range applyEnvironments { |
| 191 | if env != "staging" && env != "production" { |
| 192 | exit.Fatal("The currently supported environments are \"staging\" and \"production\"") |
| 193 | } |
| 194 | } |
| 195 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected