Sha256: 1878b42f717241a1f3741b02739deb014bd553da8521dca2ab0fe1ea73e81f85
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 Bytes
Contents
module Safely module Strategy class Hoptoad class << self # Hoptoad API key to use for reporting errors attr_accessor :hoptoad_key attr_accessor :hoptoad_host def load! begin require 'toadhopper' rescue LoadError $stderr.write( "'toadhopper' not available, safely cannot use the Hoptoad stategy" ) end end def report!( exception ) params = {} params[:notify_host] = self.hoptoad_host if !self.hoptoad_host.nil? if defined?( Toadhopper ) && !self.hoptoad_key.nil? Toadhopper.new(self.hoptoad_key, params).post!(exception) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
safely-0.3.2 | lib/safely/strategy/hoptoad.rb |