Created
February 25, 2021 04:04
-
-
Save trycf/8d63e262ac02ab8166556f8f2e62bc52 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
environments = { | |
local = "^(local)", | |
development = "-dev.cordonbleu.edu", | |
acceptance = "-acc.cordonbleu.edu", | |
staging = "-staging.cordonbleu.edu", | |
datawarehouse = "-dw.cordonbleu.edu", | |
training = "-training.cordonbleu.edu", | |
asterix = "-asterix.cordonbleu.edu", | |
production = "cordonbleu.edu", | |
}; | |
this.environment = ""; | |
environments.each( (item) => { | |
this.environment = ( reFindNoCase( environments[item] , "www.cordonbleu.edu" ) > 0) ? item : this.environment ; | |
}); | |
dump(this.environment); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment