initial
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<cfcomponent extends="taffy.core.api">
|
||||
<cfscript>
|
||||
this.name = hash(getCurrentTemplatePath());
|
||||
|
||||
variables.framework = {};
|
||||
variables.framework.exceptionLogAdapter = "taffy.bonus.LogToHoth";
|
||||
variables.framework.exceptionLogAdapterConfig = "taffy.examples.api_hoth.resources.HothConfig";
|
||||
|
||||
</cfscript>
|
||||
</cfcomponent>
|
||||
@@ -0,0 +1 @@
|
||||
Hoth: The files within this directory contain the complete details for each unique exception.
|
||||
@@ -0,0 +1 @@
|
||||
Hoth: The files within this directory contain the details about the volume of errors for each unique exception.
|
||||
@@ -0,0 +1,6 @@
|
||||
<!---
|
||||
DO NOT DELETE THIS FILE
|
||||
===============================
|
||||
This file is necessary for Taffy to work, but should be blank.
|
||||
All requests funnel through it, but are handled by framework internal functionality.
|
||||
--->
|
||||
@@ -0,0 +1,57 @@
|
||||
component
|
||||
implements = 'Hoth.object.iHothConfig'
|
||||
extends = 'Hoth.object.CoreConfig'
|
||||
accessors = 'true'
|
||||
{
|
||||
|
||||
/** What is the name of your application? */
|
||||
property
|
||||
name='applicationName'
|
||||
default='Taffy Tests';
|
||||
|
||||
/** How many seconds should we lock file operations?
|
||||
For most operations this is exclusive to a unique exception. */
|
||||
property
|
||||
name='timeToLock'
|
||||
default='4';
|
||||
|
||||
/** Where would you like Hoth to save exception data?
|
||||
This folder should be empty. */
|
||||
property
|
||||
name='logPath'
|
||||
default='/taffy/examples/api_hoth/hoth/exceptions';
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
/** Would you like new exceptions to be emailed to you? */
|
||||
property
|
||||
name='EmailNewExceptions'
|
||||
default='true';
|
||||
|
||||
/** What address(es) should receive these e-mails? */
|
||||
property
|
||||
name='EmailNewExceptionsTo'
|
||||
default='you@yourdomain.com';
|
||||
|
||||
/** What address would you like these emails sent from? */
|
||||
property
|
||||
name='EmailNewExceptionsFrom'
|
||||
default='hoth-error-report@yourdomain.com';
|
||||
|
||||
/** Would you like the raw JSON attached to the e-mail? */
|
||||
property
|
||||
name='EmailNewExceptionsFile'
|
||||
default='true';
|
||||
// ------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
The mapping where you would like Hoth to write it's log files.
|
||||
Without this setting, Hoth will write log files to the same directory
|
||||
Hoth is located within. This is not recomended as your will have content
|
||||
mixed into your Hoth code.
|
||||
**/
|
||||
setGlobalDatabasePath(path='/taffy/examples/api_hoth/hoth/logs/');
|
||||
|
||||
//make the log path be evaluated as relative
|
||||
variables.logPathIsRelative = true;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<cfcomponent extends="taffy.core.resource" taffy_uri="/foo">
|
||||
|
||||
<cffunction name="get" access="public" output="false">
|
||||
<cfthrow message="this is the message" detail="this is the detail" />
|
||||
</cffunction>
|
||||
|
||||
</cfcomponent>
|
||||
Reference in New Issue
Block a user