Sha256: 27753c24f8914633cb510b0f8ed2a5d019674bf1183f8b33faac47e31d980f8a

Contents?: true

Size: 778 Bytes

Versions: 28

Compression:

Stored size: 778 Bytes

Contents

Developing
----------

You can write your own notifiers and place them in `lib/flapjack/notifiers/`.

Your notifier just needs to implement the `notify` method, and take in a hash:

    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


Testing
-------

Flapjack is, and will continue to 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, and tests live in `spec/`.

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

    $ rake spec



Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
auxesis-flapjack-0.4.10 doc/DEVELOPING.md
auxesis-flapjack-0.4.5 doc/DEVELOPING.md
auxesis-flapjack-0.4.6 doc/DEVELOPING.md
auxesis-flapjack-0.4.8 doc/DEVELOPING.md
auxesis-flapjack-0.4.9 doc/DEVELOPING.md
flapjack-0.6.38 doc/DEVELOPING.md
flapjack-0.6.37 doc/DEVELOPING.md
flapjack-0.6.36 doc/DEVELOPING.md
flapjack-0.6.35 doc/DEVELOPING.md
flapjack-0.6.34 doc/DEVELOPING.md
flapjack-0.6.33 doc/DEVELOPING.md
flapjack-0.6.32 doc/DEVELOPING.md
flapjack-0.6.31 doc/DEVELOPING.md
flapjack-0.6.30 doc/DEVELOPING.md
flapjack-0.6.29 doc/DEVELOPING.md
flapjack-0.6.28 doc/DEVELOPING.md
flapjack-0.6.27 doc/DEVELOPING.md
flapjack-0.6.26 doc/DEVELOPING.md
flapjack-0.6.25 doc/DEVELOPING.md
flapjack-0.6.24 doc/DEVELOPING.md