Class: StartingBlocks::Extensions::StopplichtAlert
- Inherits:
-
Object
- Object
- StartingBlocks::Extensions::StopplichtAlert
- Defined in:
- lib/stopplicht_alert.rb
Instance Method Summary collapse
Instance Method Details
#display(color) ⇒ Object
16 17 18 19 |
# File 'lib/stopplicht_alert.rb', line 16 def display color color = "running" if color == :yellow `stopplicht-#{color}` end |
#receive_files_to_run(files) ⇒ Object
5 6 7 8 9 |
# File 'lib/stopplicht_alert.rb', line 5 def receive_files_to_run files @spec_count = files.count return if files.count == 0 display :yellow end |
#receive_results(results) ⇒ Object
11 12 13 14 |
# File 'lib/stopplicht_alert.rb', line 11 def receive_results results return if @spec_count.to_i == 0 display results[:color] end |