Module: Baywatch::Rescue::ClassMethods

Defined in:
lib/baywatch/rescue.rb

Instance Method Summary collapse

Instance Method Details

#service_down(*exceptions, &block) ⇒ Object



13
14
15
16
17
18
# File 'lib/baywatch/rescue.rb', line 13

def service_down(*exceptions, &block)
  on = Baywatch::Config.new
  block.call(on)
  exceptions_appended = exceptions.unshift(*DEFAULT_EXCEPTIONS)
  define_rescues(exceptions_appended, on)
end