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

 
development_guides.txt · Last modified: 2009/11/29 10:31 by Lindsay Holmwood
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Driven by DokuWiki