Method: Integrity::Notifier::Base.notify_of_build

Defined in:
lib/integrity/notifier/base.rb

.notify_of_build(build, config) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/integrity/notifier/base.rb', line 4

def self.notify_of_build(build, config)
  Integrity.log "Notifying of build #{build.commit.short_identifier} using the #{self.class} notifier"
  Timeout.timeout(8) { new(build.commit, config).deliver! }
rescue Timeout::Error
  Integrity.log "#{notifier.name} notifier timed out"
  false
end