Class: Janky::Notifier::ChatService
- Inherits:
-
Object
- Object
- Janky::Notifier::ChatService
- Defined in:
- lib/janky/notifier/chat_service.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.completed(build) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/janky/notifier/chat_service.rb', line 4 def self.completed(build) status = build.green? ? "was successful" : "failed" color = build.green? ? "green" : "red" = "Build #%s (%s) of %s/%s %s (%ss) %s" % [ build.number, build.short_sha1, build.repo_name, build.branch_name, status, build.duration, build.web_url ] ::Janky::ChatService.speak(, build.room_id, {:color => color, :build => build}) end |