Skip to content

Instantly share code, notes, and snippets.

@roryl
Last active March 15, 2016 14:46
Show Gist options
  • Save roryl/46ce13d0be02ebf627cb to your computer and use it in GitHub Desktop.
Save roryl/46ce13d0be02ebf627cb to your computer and use it in GitHub Desktop.
Lucee System Placeholders
<cfscript>
echo(expandPath('{lucee-web}') & "<br />"); //C:\Users\Rory\.CommandBox\server\A9F9212AEA00D070AA3482E81E747F69-luceebook
echo(expandPath('{lucee-server}') & "<br />"); //C:\Users\Rory\.CommandBox\engine\cfml\server\lucee-server\context
echo(expandPath('{lucee-config}') & "<br />"); //C:\Users\Rory\.CommandBox\server\A9F9212AEA00D070AA3482E81E747F69-luceebook
echo(expandPath('{temp-directory}') & "<br />"); //C:\Users\Rory\.CommandBox\server\A9F9212AEA00D070AA3482E81E747F69-luceebook\temp
echo(expandPath('{home-directory}') & "<br />"); //C:\Users\Rory
echo(expandPath('{system-directory}') & "<br />"); //C:\Windows\System32
echo(expandPath('{web-root-directory}') & "<br />"); //C:\websites\luceebook
echo(expandPath('{web-context-hash}') & "<br />"); //C:\websites\luceebook\examples\system_placeholders\a9f9212aea00d070aa3482e81e747f69
echo(expandPath('{web-context-label}') & "<br />"); //C:\websites\luceebook\examples\system_placeholders\a9f9212aea00d070aa3482e81e747f69
</cfscript>
/**
* My xUnit Test
*/
component extends="testbox.system.BaseSpec"{
/*********************************** LIFE CYCLE Methods ***********************************/
// executes before all test cases
function beforeTests(){
}
// executes after all test cases
function afterTests(){
}
// executes before every test case
function setup( currentMethod ){
}
// executes after every test case
function teardown( currentMethod ){
}
/*********************************** TEST CASES BELOW ***********************************/
function checkAllSyntaxTest(){
var files = directoryList("");
for(file IN files){
if(!file CONTAINS ".cfc"){
include template="#getFileFromPath(file)#";
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment