Class: Fett::BuildStatusColorHandler
- Inherits:
-
Object
- Object
- Fett::BuildStatusColorHandler
- Defined in:
- lib/fett/build_status_color_handler.rb
Class Method Summary collapse
Class Method Details
.color(status) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/fett/build_status_color_handler.rb', line 3 def self.color(status) if status == "success" color = "#36a64f" elsif status == "failure" color = "#d00000" elsif status == "pending" color = "#ffcc66" end end |