Skip to content

Instantly share code, notes, and snippets.

@opn
Created April 12, 2016 19:03
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 opn/fc6d5b116b0c0f6c14892d3a33bc90b3 to your computer and use it in GitHub Desktop.
Save opn/fc6d5b116b0c0f6c14892d3a33bc90b3 to your computer and use it in GitHub Desktop.
This handler returns the path to the revIgniter stack folder and ensures that it ends in a "/".
function rig_StackFolder rigApplicationFolder
if the environment = "server" then
-- we don;t need to switch servers so revIgniter can handle this easily
return gApplicationFolder & "/" & "stacks/"
else
text_AddTrailing rigApplicationFolder, "/"
put "stacks/" after rigApplicationFolder
return rigApplicationFolder
end if
end rig_StackFolder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment