Module: Defaults
- Included in:
- Inari::Commands
- Defined in:
- lib/inari/commands/defaults.rb
Instance Method Summary collapse
Instance Method Details
#email_on_events ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/inari/commands/defaults.rb', line 23 def email_on_events on_down do email(:subject => "#{current_host} is down", :body => "#{current_host} is down." + sig) end on_up do email(:subject => "#{current_host} is up (down for #{down_for} seconds)", :body => "#{current_host} is up (down for #{down_for} seconds)" + sig) end end |