Table of Contents

Developing Flapjack

Testing

Flapjack is, and will always be, well tested. Monitoring is like continuous integration for production apps, so why shouldn't your monitoring system have tests?

Testing is done with rspec (spec/) and Cucumber (features/).

To run the tests, check out the code and run:

$ rake spec
$ rake features

Notifiers

You can write your own notifiers to call out to various systems.

Your notifier just needs to implement the initialize and notify methods, and take in a hash on both:

class Sms
  def initialize(opts={})
    # you may want to set from address here
    @from = (opts[:from] || "0431 112 233")
  end
 
  def notify(opts={})
    who = opts[:who]
    result = opts[:result]
    # sms to your hearts content
  end
end

Persistence backends

TODO: write docs on persistence backends api

Transports

TODO: write docs on transports api