Skip to content

Instantly share code, notes, and snippets.

@mhenke
Created February 16, 2011 14:31
Show Gist options
  • Select an option

  • Save mhenke/829456 to your computer and use it in GitHub Desktop.

Select an option

Save mhenke/829456 to your computer and use it in GitHub Desktop.
hoth config files from github and sample code
/**
Aaron Greenlee
http://aarongreenlee.com/
This work is licensed under a Creative Commons Attribution-Share-Alike 3.0
Unported License.
// Original Info -----------------------------------------------------------
Author : Aaron Greenlee
Created : 10/01/2010
Default configuration for Hoth.
*/
component
implements='Hoth.object.iHothConfig'
extends='Hoth.object.CoreConfig'
accessors=true {
/** What is the name of your application? */
property name='applicationName' default='HothDefaultConfig';
/** How many seconds should we lock file operations?
For most operations this is exclusive to a unique exception. */
property name='timeToLock' default='1';
/** Where would you like Hoth to save exception data?
This folder should be empty. */
property name='logPath' default='/Hoth/logs';
// ------------------------------------------------------------------------------
/** Would you like new exceptions to be emailed to you? */
property name='EmailNewExceptions' default='false';
/** 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@yourdomain.com';
/** Would you like the raw JSON attached to the e-mail? */
property name='EmailNewExceptionsFile' default='false';
// ------------------------------------------------------------------------------
public any function init()
{
return this;
}
}
/**
* Copyright Aaron Greenlee
*
* <h4>Description</h4>
* An example configuration object for your appication.
* Customize this configuration object for your needs.
*
* Created
* 2/9/2011 10:22:19 AM
*
* @author Aaron Greenlee
* @version 1
* @see N/A
**/
component
implements = 'Hoth.object.iHothConfig'
extends = 'Hoth.object.CoreConfig'
accessors = true
{
/** What is the name of your application? */
property
name='applicationName'
default='Amazing ColdFusion Club 2';
/** How many seconds should we lock file operations?
For most operations this is exclusive to a unique exception. */
property
name='timeToLock'
default='1';
/** Where would you like Hoth to save exception data?
This folder should be empty. */
property
name='logPath'
default='/your_mapping/hoth/cfmlClub';
// ------------------------------------------------------------------------------
/** 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@email.com;co-worker@email.com';
/** What address would you like these emails sent from? */
property
name='EmailNewExceptionsFrom'
default='you@email.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='/logs/hoth/');
}
@mhenke
Copy link
Copy Markdown
Author

mhenke commented Feb 16, 2011

same code works for the config but github config doesn't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment