Class: AutotestNotification::Doom

Inherits:
Object
  • Object
show all
Defined in:
lib/autotest_notification/doom.rb

Class Method Summary collapse

Class Method Details

.image(total, failures) ⇒ Object



4
5
6
7
# File 'lib/autotest_notification/doom.rb', line 4

def image(total, failures)
  percent = failures.zero? ? 0 : ((5 * failures) / total) + 1
  "#{IMAGES_DIRECTORY}/doom/doom_#{percent}.png"
end