class StartingBlocks::Extensions::StopplichtAlert
Public Instance Methods
display(color)
click to toggle source
# File lib/stopplicht_alert.rb, line 18 def display color color = "running" if color == :yellow `stopplicht-#{color}` end
receive_files_to_run(files)
click to toggle source
# File lib/stopplicht_alert.rb, line 5 def receive_files_to_run files @spec_count = files.count return if files.count == 0 display :yellow rescue end
receive_results(results)
click to toggle source
# File lib/stopplicht_alert.rb, line 12 def receive_results results return if @spec_count.to_i == 0 display results[:color] rescue end