ape.plugins.dummyplugin.CrashTestDummy

class ape.plugins.dummyplugin.CrashTestDummy(*args, **kwargs)

A plugin to test the infrastructure by crashing

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)
fetch_config() prints a message saying there is no configuration
help([width]) Prints a help-string for the plugin
log_error(error[, message]) Logs the error in bold red

Attributes

help_page A HelpPage to use if self.sections has been defined
logger
return:A logging object.
product builds and returns a CrashTestDummy
sections An ordered dict for the help page
fetch_config()

prints a message saying there is no configuration

help(width=80)

Prints a help-string for the plugin

Param:
  • width: number of characters wide to print help
log_error(error, message='')

Logs the error in bold red

Param:
  • error: error type (prefix in red and bold)
  • message: descriptive message (red but not bold)
config_builder

A CrashTestDummy configuration

help_page

A HelpPage to use if self.sections has been defined

logger
Returns:A logging object.
product

builds and returns a CrashTestDummy

Precondition:self.configuration map has been set
Returns:CrashTestDummy
sections

An ordered dict for the help page

Navigation