Module Mole
In: bin/molify
lib/mole.rb
lib/mole/db/migrate.rb
lib/mole/e_mole.rb
lib/mole/logger.rb
lib/mole/moler.rb
lib/mole/utils/frameworks.rb
lib/mole/version.rb

Convenience for extracting actions out controller classes Currently supported frameworks : Rails and Merb, more in the future…


Methods

Classes and Modules

Module Mole::Db
Module Mole::Utils
Module Mole::Version
Class Mole::EMole
Class Mole::Logger
Class Mole::Moler
Class Mole::Molify

Public Class methods

Initialize the MOle Valid options are

moleable:specify if this application is moleable. Defaults to false.
application:the name of the application to be moled.
perf_threshold:the performance threshold over which a Mole condition will be issued. Defaults to 5 seconds
mode:the MOle logging mole. The mole can either log information to a db via the :persistent option or to a log file via the :transient flag. Defaults to transient
emole_from:the EMole originator when sending eMOle alerts.
emole_recipients:a collection of EMOle recipients
mole_config:the location of the MOle configuration file where the interceptors will be defined.
log_file:The log file to be used to log MOle interceptions
log_level:logging level ie :info, :debug, :error, :warn…
email_alerts_to:log level email alert recipients.
email_alert_level:specifies which log level will trigger email alerts to be sent

Loads the mole configuration file You can either specify a directory containing mole config files or a single mole config file via the mole_config option.

Check if the MOle is running in persistent mode

Enable to toggle between different log modes ie :persistent/:transient

[Validate]