Last active
March 15, 2016 14:46
-
-
Save roryl/46ce13d0be02ebf627cb to your computer and use it in GitHub Desktop.
Lucee System Placeholders
This file contains hidden or 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> | |
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> |
This file contains hidden or 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
/** | |
* 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