Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/8d63e262ac02ab8166556f8f2e62bc52 to your computer and use it in GitHub Desktop.
Save trycf/8d63e262ac02ab8166556f8f2e62bc52 to your computer and use it in GitHub Desktop.
TryCF Gist
<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